Back to Notenik Docs


The Notenik Knowledge Base

7.3.8 Intra-Note Commands ↑

7.3.8.2 Generate Outline Based on Unordered List Items

As an extension to the original Markdown spec from John Gruber, a Note’s body field can be formatted as an outline, using the Note’s unordered list items as the items in the outline.

This outline formatting is requested by placing the following command line in the body field, before the appearance of any lists.

{:outline-bullets}

Unordered list items can then be indicated using the usual Markdown syntax. Notenik will then wrap each list item within a summary element, with the list item line and any following indented content enclosed within a details element.

The result will be that each list item will start with a disclosure triangle, with the details following the list item initially hidden. Clicking on the disclosure triangle will then reveal the details following the list item line (including any lower-level lists, whose items will in turn have their own disclosure triangles).

For example…


Next: 7.3.8.3 Generate Outline Based on Headings