jgm / djot

A light markup language
https://djot.net
MIT License
1.66k stars 43 forks source link

First dollar sign of math cannot be escaped #127

Closed hellux closed 1 year ago

hellux commented 1 year ago
\$$`a`

generates <p><span class="math display">\[a\]</span></p> instead of <p>$<span class="math inline">\(a\)</span></p>.

It does work as expected if the second dollar sign is escaped, though.

Similarly,

\$`a`

generates <p><span class="math inline">\(a\)</span></p> instead of <p>$<code>a</code></p>