fix(UI/markdown): markdown not recognized ** as emphasis marks in CJK (#4119)
This commit is contained in:
@@ -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<Props> = ({ message, citationsData }) => {
|
||||
return (
|
||||
<ReactMarkdown
|
||||
rehypePlugins={rehypePlugins}
|
||||
remarkPlugins={[remarkMath, remarkGfm]}
|
||||
remarkPlugins={[remarkMath, remarkGfm, remarkCjkFriendly]}
|
||||
className="markdown"
|
||||
components={components()}
|
||||
disallowedElements={['iframe']}
|
||||
|
||||
Reference in New Issue
Block a user