gamburg / margin

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

Decide how to treat "annotations with children" #17

Open gamburg opened 4 years ago

gamburg commented 4 years ago

Originally raised by @burlesona in #11

mtsknn commented 4 years ago

From the current documentation:

Because annotations cannot have children, an indented item following an annotation is considered that annotation's parent:

Items:
  - Item Y
        [I belong to Item Y]
  - [I belong to Item Z]
          Item Z

See https://github.com/gamburg/margin/issues/11#issuecomment-628839001 why I think this is confusing and problematic.

mtsknn commented 4 years ago

@gamburg, you could try out my parser to see how this would work in practice (you can edit playground.js as instructed in the readme).