gamburg / margin

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

Consider revoking parenthood of attributes after newline #1

Closed gamburg closed 4 years ago

gamburg commented 4 years ago
I'm a parent [and I'm its child attribute]
[I'm also its child attribute]

... but maybe it should't be. Revoking this rule would allow for attributes to follow the rules of indentation.

In this case, indentation rules would be more consistent:

Parent [child of Parent]
  [also child  of Parent]
[not child of Parent]

Plus, this would allow for attributes to not require their parents to be named items:

Blog Post
  Blog post body text.

[pagebreak]

Related Articles
  Article A
  Article B
  Article C

Notice how in the above example [pagebreak] isn't the child of Blog post body text. (that would be strange). Instead, it's a child of the assumed document parent item because it's indented as such. This is especially useful for converting to non-indent based markup languages like Markdown, where there really are some "nameless elements" (like a page break) that just belong to the page and not to the current section:

---------
gamburg commented 4 years ago

Resolved with f99c77f