Open codello opened 6 months ago
Allowing empty lines seems reasonable as they can be useful for grouping and are dropped easily. On the other hand, I don't see any use case for leading whitespace, and lines containing only whitespace would only occur by (rather unlikely) accident. At the same time, this seems slightly more involved to parse correctly, so I wouldn't bother. Of course, implementations could still choose to be more forgiving and ignore whitepsace lines without causing harm.
Given there are no other comments I think we can vote on this now with these options:
Suggestion
Currently the spec does not specify how implementations should handle empty lines. I'd like to suggest an addition to the spec that empty line should be ignored. Furthermore I'd like to suggest that implementations should ignore lines that consist only of whitespace (to be defined by #46).
Use case
There are several use cases:
Extra info/examples/attachments
Currently implementations have different behavior as far as I can tell:
Additionally we could also allow leading whitespace (i.e. whitespace before the
#
in a header or before the note type in the body of a file). However, this does not seem quite as useful to me.