feat: Modify the style of the answer card on the search page #2247 (#2412)

### What problem does this PR solve?

feat: Modify the style of the answer card on the search page #2247

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-09-13 12:31:31 +08:00
committed by GitHub
parent 8f2c0176b4
commit 2bd71d722b
6 changed files with 51 additions and 24 deletions

View File

@ -8,16 +8,14 @@ import styles from './index.less';
const HightLightMarkdown = ({
children,
className,
}: {
children: string | null | undefined;
className?: string;
}) => {
return (
<Markdown
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeRaw]}
className={classNames(styles.text, className)}
className={classNames(styles.text)}
components={
{
code(props: any) {