diff --git a/package.json b/package.json index ff0e4833..2ffd5b7b 100644 --- a/package.json +++ b/package.json @@ -166,6 +166,7 @@ "rehype-katex": "^7.0.1", "rehype-mathjax": "^7.0.0", "rehype-raw": "^7.0.0", + "remark-cjk-friendly": "^1.1.0", "remark-gfm": "^4.0.0", "remark-math": "^6.0.0", "rollup-plugin-visualizer": "^5.12.0", diff --git a/src/renderer/src/pages/home/Markdown/Markdown.tsx b/src/renderer/src/pages/home/Markdown/Markdown.tsx index 534b6ddf..257b52c1 100644 --- a/src/renderer/src/pages/home/Markdown/Markdown.tsx +++ b/src/renderer/src/pages/home/Markdown/Markdown.tsx @@ -14,6 +14,7 @@ import rehypeKatex from 'rehype-katex' // @ts-ignore next-line import rehypeMathjax from 'rehype-mathjax' import rehypeRaw from 'rehype-raw' +import remarkCjkFriendly from 'remark-cjk-friendly' import remarkGfm from 'remark-gfm' import remarkMath from 'remark-math' @@ -80,7 +81,7 @@ const Markdown: FC = ({ message, citationsData }) => { return (