Replies: 1 comment
-
There are spaces allowed before the closing Why does your markdown have weird indentation? Why can you not avoid spaces? It seems to me one could not type spaces. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a ReactMarkdown component from
react-markdown
and useremark-math
to parse the math andrehype-katex
to render the math.In my case, I couldn't avoid having this kind of data source:
The ending $$ sign has an extra space, and as I see from my end, the
remark-math
library will not regard it as ending, and include something after that as katex syntax also. This will cause therehype-katex
plugin throws an error in high probability.So my question is: Can I alter the logic to detect the math syntax in
remark-math
plugin and correctly render the katex even when the ending $$ sign has an extra space compare with its starting one.Beta Was this translation helpful? Give feedback.
All reactions