jgm / djot

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

Unmatched {- does not allow - to be part of em/en-dash #125

Open hellux opened 1 year ago

hellux commented 1 year ago

For the current implementation, if the opener is unmatched, the hyphen does not get parsed together with later characters, e.g.

jgm commented 1 year ago

That's true; it's an artifact of a parsing strategy that tries not to backtrack. It's not too worrisome because this is unlikely to occur naturally.