Update RemarkRenderer.tsx

pull/1140/head
Ganni 2024-12-02 22:55:13 -05:00 committed by GitHub
parent 6106ba54fe
commit 7cab0bdc9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import "katex/dist/katex.min.css";
import rehypePrism from "rehype-prism";
import rehypeReact from "rehype-react";
import rehypeRaw from 'rehype-raw'
import remarkBreaks from "remark-breaks";
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
@ -147,6 +148,7 @@ const render = unified()
.use(remarkRehype, {
handlers,
})
.use(rehypeRaw)
.use(rehypeKatex, {
maxSize: 10,
maxExpand: 0,