Neopolitan: Link And Checklist Content Sections
Continuing the content types:
List Type
The list type is designed to allow multiple blocks inside each item. Here's a notes
section using the list content type.
-- notes
- Alfa Bravo
Charlie Delta
- Echo Foxtrot
<ul>
<li>
<p>Alfa Bravo</p>
<p>Charlie Delta</p>
</li>
<li>
<p>Echo Foxtrot</p>
</li>
</ul>
Checklist Type
Checklist items start with either []
the indicates an unchecked item, or a set of braces with something inside them that represents a checked item. I'm using x
here, but anything could be used and multiple strings could be passed to the rendering engine to make decisions on (e.g. for in progress stuff).
Here's a todo
section using the checklist content type and using the checkboxes to determine what class to set on the list items in the output:
-- todo
[] Alfa Bravo
Charlie Delta
[x] Echo Foxtrot
<ul>
<li class="not_done">
<p>Alfa Bravo</p>
<p>Charlie Delta</p>
</li>
<li class="done">
<p>Echo Foxtrot</p>
</li>
</ul>
Previous:
-- end of line --