Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad matching of inline math delimiters with line breaks in between #77

memeplex opened this issue Sep 7, 2013 · 1 comment


Copy link

memeplex commented Sep 7, 2013

For example:

$$1$$ A $$2$$

$$ A $$2$$


<p><script type="math/tex">1</script> A <script

<script type="math/tex"> A </script>2$$</p>

Notice that in the first case 1 and 2 are correctly recognized as math, but in the second case the line break makes
the closing $$ of 1 match the opening $$ of 2.

Maybe this is intended to work that way but I couldn't find any precise assertion regarding this in the documentation.
Besides, the behavior wreaks havoc with editors that insert line breaks when formatting paragraphs, like vim.

NOTE: I've also reported this here .

@ghost ghost assigned gettalong Sep 8, 2013
Copy link

Thanks for reporting! The problem was a bad regexp - will be fixed with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants