fix: markdown parsing error of a single symbol

This commit is contained in:
DIYgod
2023-03-09 21:14:03 +00:00
parent beecd12f0a
commit 30ccf7c007
+5 -3
View File
@@ -89,14 +89,16 @@ export const renderPageContent = (
.use(() => (tree) => {
env.toc = toc(tree, { tight: true, ordered: true })
})
.use(remarkGfm, {})
.use(remarkGfm, {
singleTilde: false,
})
.use(remarkCallout)
.use(remarkDirective)
.use(remarkDirectiveRehype)
.use(remarkYoutube)
.use(remarkMath)
// .use(remarkMath)
.use(remarkRehype, { allowDangerousHtml: true })
.use(rehypeKatex)
// .use(rehypeKatex) // Disabled due to possible $ parsing errors.
.use(rehypeStringify)
.use(rehypeRaw)
.use(rehypeImage, { env })