diff --git a/src/renderer/src/pages/home/Markdown/Markdown.tsx b/src/renderer/src/pages/home/Markdown/Markdown.tsx index 454550c5c8..5b9d79439a 100644 --- a/src/renderer/src/pages/home/Markdown/Markdown.tsx +++ b/src/renderer/src/pages/home/Markdown/Markdown.tsx @@ -21,6 +21,7 @@ import rehypeRaw from 'rehype-raw' import remarkCjkFriendly from 'remark-cjk-friendly' import remarkGfm from 'remark-gfm' import remarkMath from 'remark-math' +import { Pluggable } from 'unified' import CodeBlock from './CodeBlock' import Link from './Link' @@ -41,7 +42,11 @@ const Markdown: FC = ({ block }) => { const { mathEngine } = useSettings() const remarkPlugins = useMemo(() => { - const plugins = [remarkGfm, remarkCjkFriendly, remarkDisableConstructs(['codeIndented'])] + const plugins = [ + [remarkGfm, { singleTilde: false }] as Pluggable, + remarkCjkFriendly, + remarkDisableConstructs(['codeIndented']) + ] if (mathEngine !== 'none') { plugins.push(remarkMath) }