projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

Allow explicit section closer #5

Open shaunix opened 9 years ago

shaunix commented 9 years ago

Normally, sections are automatically closed when new sections at the same or higher level open. This is fine, because normal content isn't allowed between or after sections. Except that the links element is allowed after section content. So if you're doing complex stuff with links, you need to be able to do post-section content. Do this:

== Section One

This is section one.

== Section Two

This is section two.

==

[links type="guide"]