CrossNox / m2r2

Markdown to reStructuredText converter
https://crossnox.github.io/m2r2
MIT License
107 stars 26 forks source link

Multiple inline mathematical expressions fails to render #19

Closed FaustinCarter closed 3 years ago

FaustinCarter commented 3 years ago

Working Markdown example:

Here is some math that will work: `$x^2$`
This math will render, too: `$z^3$`

Generated RST:

Here is some math that will work: :math:`x^2`
This math will render, too: :math:`z^3`

Broken Markdown example:

But only the first math (`$x^2$`) in this line will render. This one (`$x^2$`) will not.

Generated RST:

But only the first math (\ :math:`x^2$`) in this line will render. This one (`$z^3`\ ) will not.
CrossNox commented 3 years ago

I've incorporated these examples as tests and should be fixed in the next release.