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

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

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

memeplex opened this issue Sep 7, 2013 · 1 comment
Assignees

Comments

@memeplex
Copy link

@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
Copy link
Owner

@gettalong 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants