gamburg / margin

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

Question: confusion regarding the 'note taking' example #20

Closed x3ro closed 4 years ago

x3ro commented 4 years ago

When looking at the note taking example on the Try margin page, the first couple of lines of content currently look like this (SublimeText screenshot so that invisible characters are visible):

Screenshot 2020-05-19 at 15 09 05

I'm somewhat confused about the resulting AST, so here are my questions:

This is potentially related to #5, since it appears to be caused by mixing of tabs and spaces 🤔

gamburg commented 4 years ago

Good catch on both! The single space was indeed a mistake.

As for the issue with the indentation levels, that incorrect behavior is likely due to the incompleteness of the js parser (there are many things in the js parser that are not to spec).

I'm hoping to dive into #4 (and some open questions around the spec) before worrying too much about getting the example parser up to spec.