jgm / djot

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

Syntax reference: no mention of tilde for code block fence #90

Closed hellux closed 1 year ago

hellux commented 1 year ago

The syntax reference says a code block may start with a fence of 3 or more backticks. However, the implementation allows tildes to be used as well, which is not mentioned in the reference.

matklad commented 1 year ago

I think this might be a dupe of https://github.com/jgm/djot/issues/41.

My TL;DR: we indeed support both, it's not clear whether we should though. backtick is standard, but tilda looks nicer, but backtick is easier to type.

hellux commented 1 year ago

Ah, yes, seems to be a duplicate, forgot to make a search first.