jgm / djot

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

Use [] instead of {} to wrap inline markup #73

Closed waldyrious closed 1 year ago

waldyrious commented 1 year ago

Using [_foobar_] instead of {_foobar_} would be more consistent with the other uses of {...} referring to non-text content (attributes), and with content inside [...] denoting the textual part of elements (chiefly, [links]()).

Prior art: This []-based syntax has already been tested in the wild with Textile (e.g. see docs for bold/strong), and I'm not aware of issues found by Textile authors derived from that choice of characters.

jgm commented 1 year ago

The problem with this is that [..] is already dedicated to links and spans.