Skip to content

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

@memeplex

Description

@memeplex

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 .

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions