Fixed katex issue. Now allow $$ for katex

pull/1062/head
Harish Vishwakarma 2024-11-15 23:53:14 +05:30
parent 931a9a1799
commit 359b3e7686
1 changed files with 4 additions and 2 deletions

View File

@ -135,7 +135,9 @@ const render = unified()
.use(remarkParse)
.use(remarkBreaks)
.use(remarkGfm)
.use(remarkMath)
.use(remarkMath, {
singleDollarTextMath: false,
})
.use(remarkSpoiler)
.use(remarkChannels)
.use(remarkTimestamps)
@ -146,11 +148,11 @@ const render = unified()
handlers,
})
.use(rehypeKatex, {
strict: true,
maxSize: 10,
maxExpand: 0,
maxLength: 512,
trust: false,
strict: false,
output: "html",
throwOnError: false,
errorColor: "var(--error)",