mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 02:05:28 +00:00
Update RemarkRenderer.tsx
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
import rehypePrism from "rehype-prism";
|
import rehypePrism from "rehype-prism";
|
||||||
import rehypeReact from "rehype-react";
|
import rehypeReact from "rehype-react";
|
||||||
|
import rehypeRaw from 'rehype-raw'
|
||||||
import remarkBreaks from "remark-breaks";
|
import remarkBreaks from "remark-breaks";
|
||||||
import remarkGfm from "remark-gfm";
|
import remarkGfm from "remark-gfm";
|
||||||
import remarkMath from "remark-math";
|
import remarkMath from "remark-math";
|
||||||
@@ -147,6 +148,7 @@ const render = unified()
|
|||||||
.use(remarkRehype, {
|
.use(remarkRehype, {
|
||||||
handlers,
|
handlers,
|
||||||
})
|
})
|
||||||
|
.use(rehypeRaw)
|
||||||
.use(rehypeKatex, {
|
.use(rehypeKatex, {
|
||||||
maxSize: 10,
|
maxSize: 10,
|
||||||
maxExpand: 0,
|
maxExpand: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user