projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

Add a fenced no-parse mechanism? #7

Closed shaunix closed 6 years ago

shaunix commented 9 years ago

Code blocks in Mallard still have inline parsing, unlike many other lightweight formats. This is intentional, so that you can still highlight and link and stuff in code blocks. But sometimes it's nice to have a no-parse segment if there's a lot of stuff to escape. Maybe a fenced mechanism? Would be nice to use a character that's already syntactically relevant. Perhaps triple-square-bracket?

[code]
[[[
I don't have to escape $dollor(signs) or
[markup]
that looks like blocks.
]]]