Closed Brixy closed 5 months ago
I like the whitespace because it makes the source more readable to a human, and less like a computer language. So, closing. But thanks for the suggestion.
I like the whitespace because it makes the source more readable to a human, and less like a computer language.
Absolutely true. Thank you for looking into this.
This proposal removes leading whitespace from nestable block elements like lists, footnotes, divs etc.
Generally I prefer not to have to use white space for nesting, but honestly—I am not quite sure whether I like this proposal enough. (Feel free to just close this issue.)
Djot’s current syntax–also regarding white space—is a lot better than markdown’s.
These ideas work together:
+
).Option 1: non-unique nesting level marker
Option 2: unique nesting level marker (
>
)The unique nesting level marker would work with any kind of nestable items, e.g.
A clear disadvantage is that the proposed syntaxes look more like “code” which probably does not align with markdown’s original idea.
Advantage is the removal of whitespace. Think of all the whitespace needed for such a case:
All in all this is not too different from the current syntax: The nesting level marker just replaces leading whitespace in a visible way. The “keep nesting level”/continuation marker is a short form of an arbitrary number of leading whitespace.