Update RemarkRenderer.tsx

This commit is contained in:
Ganni
2024-12-02 22:55:13 -05:00
committed by GitHub
parent 6106ba54fe
commit 7cab0bdc9b

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,