diff --git a/package.json b/package.json index 387d4e8..2aece26 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "antd": "^5.1.0", "clsx": "^1.2.1", "dayjs": "^1.11.7", + "github-markdown-css": "^5.1.0", "lodash": "^4.17.21", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/components/Markdown/index.tsx b/src/components/Markdown/index.tsx index c77bc0b..785a8f5 100644 --- a/src/components/Markdown/index.tsx +++ b/src/components/Markdown/index.tsx @@ -5,6 +5,7 @@ import remarkGfm from 'remark-gfm'; import rehypeRaw from 'rehype-raw'; import SyntaxHighlighter from 'react-syntax-highlighter'; import agate from 'react-syntax-highlighter/dist/esm/styles/hljs/agate'; +import 'github-markdown-css'; import './index.scss';