比赛
All checks were successful
Deploy to Server / deploy (push) Successful in 36s

This commit is contained in:
jeremygan2021
2026-03-10 12:35:41 +08:00
parent 417cda952d
commit 3ada996915
9 changed files with 388 additions and 11 deletions

View File

@@ -4,7 +4,6 @@ import { CalendarOutlined } from '@ant-design/icons';
import { useNavigate } from 'react-router-dom';
import dayjs from 'dayjs';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
const { Title } = Typography;
@@ -65,9 +64,16 @@ const CompetitionCard = ({ competition }) => {
display: '-webkit-box',
WebkitLineClamp: 3,
WebkitBoxOrient: 'vertical',
marginBottom: 0
marginBottom: 0,
fontSize: '14px'
}}>
<ReactMarkdown remarkPlugins={[remarkGfm]}>
<ReactMarkdown
allowedElements={['p', 'text', 'strong', 'em', 'del']}
unwrapDisallowed={true}
components={{
p: (props) => <span {...props} />,
}}
>
{competition.description}
</ReactMarkdown>
</div>