diff --git a/src/markdown/index.ts b/src/markdown/index.ts index 73def770..bad36650 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -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: {