We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f3fe15 commit 431a634Copy full SHA for 431a634
src/components/Markdown.tsx
@@ -252,10 +252,10 @@ export function Markdown(props: {
252
runHighlight = false
253
}
254
createEffect(
255
- on(md, async () => {
+ on(md, async (content) => {
256
setShow(false)
257
// lazy for math rendering
258
- if (/\$\$[\s\S]+?\$\$|\$[^$\n]+?\$/.test(md())) {
+ if (/\$\$[\s\S]+?\$\$|\$[^$\n]+?\$/.test(content)) {
259
const { default: reMarkMath } = await import("remark-math")
260
const { default: rehypeKatex } = await import("rehype-katex")
261
insertKatexCSS()
0 commit comments