docs: add comment for rehypeKatex

This commit is contained in:
DIYgod 2023-04-19 21:51:50 +01:00
parent 77a3f805e1
commit 37003b6e69
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,9 @@ export const renderPageContent = (
ignoreMissing: true,
showLineNumbers: true,
})
.use(rehypeKatex) // There may be $ symbol parsing errors
// It will cause unexpected parsing to the `$` symbol, but there is currently no solution.
// Move it to the end as it generates a lot of DOM and requires extensive traversal.
.use(rehypeKatex)
.use(html ? () => (tree: any) => {} : rehypeReact, {
createElement: createElement,
components: {