gamburg / margin

Lightweight markup designed for an open mind
https://margin.love
MIT License
189 stars 9 forks source link

Be more specific about which characters are ignored #7

Closed gamburg closed 4 years ago

gamburg commented 4 years ago

Include UTF-8 values. And make sure to specify all types of possible whitespace characters.

Originally raised by @vlmutolo

gamburg commented 4 years ago

And add + as an ignored character

vlmutolo commented 4 years ago

I think leaving white space as spaces (U+0020) and tabs (U+0009) would work well for most use cases. You could even just pick your favorite and make it the official margin white space character. That would definitely simplify parsing.

You also should consider whether or not - and other "ignored" characters count as whitespace in the context of indentation. Though that should probably be a separate issue.

gamburg commented 4 years ago

Added file: 6d0375854f96921444f7e5bfbe49f98d0bdc3f2f Added link to spec: 41a71ba57d4115e771f1c8290f9a50cfbb14d1b9