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

Closed
memeplex opened this Issue Sep 7, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@memeplex

memeplex commented Sep 7, 2013

For example:

$$1$$ A $$2$$

$$1
$$ A $$2$$

generates:

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

<p>$$1
<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 http://rubyforge.org/tracker/index.php?func=detail&aid=29801&group_id=7403&atid=28673 .

@ghost ghost assigned gettalong Sep 8, 2013

@gettalong

This comment has been minimized.

Owner

gettalong commented Sep 14, 2013

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

@gettalong gettalong closed this Sep 14, 2013

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