docs: add comment for rehypeKatex
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user