Zettelmarkup: Headings manual manual zettelmarkup zettelstore zmk 00001007010000 00001007030000 00001007040324 00001007721200 00001007800000 00001007906000 00001007990000 00001007010000 00001007030000 00001007040324 00001007721200 00001007800000 00001007906000 00001007990000 1 (c) 2020-present by Detlef Stern 20210126175322 00001007040000 en EUPL-1.2-or-later 20220218133755 20220218133755 public To specify a (sub-) section of a zettel, you should use the headings syntax: at the beginning of a new line type at least three equal signs (=, U+003D), plus at least one space and enter the text of the heading as inline elements. === Level 1 Heading ==== Level 2 Heading ===== Level 3 Heading ====== Level 4 Heading ======= Level 5 Heading ======== Level 5 Heading This renders in HTML as: Level 1 Heading Level 2 Heading Level 3 Heading Level 4 Heading Level 5 Heading Level 5 Heading Notes The heading level is translated to a HTML heading by adding 1 to the level, e.g. === Level 1 Heading translates to

Level 1 Heading

. The

tag is rendered for the zettel title. This syntax is often used in a similar way in wiki implementation. However, trailing equal signs are not removed, they are part of the heading text. If you use command line tools, you can easily create a draft table of contents with the command: grep -h '^====* ' ZETTEL_ID.zettel