jgm / djot

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

What's the proper way to generate three endash in a row? #120

Closed crlf0710 closed 1 year ago

crlf0710 commented 1 year ago

Seems six -s will be recognized as two emdash in a row, which is ok by itself. However, i wonder for a djot-writer, what's the proper way to write djot if three endash is instead what one's intended output?

jgm commented 1 year ago

This would work but it's awkward:

--{%%}--{%%}--

(empty comments to separate)

Or, just use unicode en-dashes.

crlf0710 commented 1 year ago

@jgm Please consider revisit this after #112 is resolved... I'd say something like allowing user to write :endash::endash::endash: for this purpose is cleaner from the ast perspective.