Skip to content

Commit

Permalink
fix: markdown katex render regex
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 11, 2022
1 parent cc0c5b1 commit 2d9081b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/MarkdownRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const MarkdownRender = forwardRef<HTMLDivElement, MarkdownProps>((props,
})

return text
})(/\$\$([\s\S]+?)\$\$/g, /\$([^\n\s]+?)\$/g)
})(/\$\$([\s\S]+?)\$\$/g, /\$([\s\S]+?)\$/g)

renderer.paragraph = RenderReplacer(renderer.paragraph, replacer)
renderer.text = RenderReplacer(renderer.text, replacer)
Expand Down

0 comments on commit 2d9081b

Please sign in to comment.