(zettel (meta (back "00001007010000 00001007030000 00001007030600 00001007720900 00001007800000 00001007990000 00001012920513") (backward "00001007010000 00001007030000 00001007030600 00001007720900 00001007800000 00001007990000 00001012920513") (box-number "1") (created "00010101000000") (forward "00001007040000 00001007040350") (modified "20220218133902") (published "20220218133902") (role "manual") (syntax "zmk") (tags "#manual #zettelmarkup #zettelstore") (title "Zettelmarkup: Nested Lists")) (rights 4) (encoding "") (content "There are thee kinds of lists that can be nested: ordered lists, unordered lists, and quotation lists.\n\nOrdered lists are specified with the number sign (\"\"''#''\"\", U+0023), unordered lists use the asterisk (\"\"''*''\"\", U+002A), and quotation lists are specified with the greater-than sing (\"\"''>''\"\", U+003E).\nLet's call these three characters __list characters__.\n\nAny nested list item is specified by a non-empty sequence of list characters, followed by a space character and a sequence of [[inline elements|00001007040000]].\nIn case of a quotation list as the last list character, the space character followed by a sequence of inline elements is optional.\nThe number / count of list characters gives the nesting of the lists.\nIf the following lines should also be part of the list item, exactly the same number of spaces must be given at the beginning of each of the following lines as it is the lists are nested, plus one additional space character.\nIn other words: the inline elements must begin at the same column as it was on the previous line.\n\nThe resulting sequence on inline elements is merged into a paragraph.\nAppropriately indented paragraphs can specified after the first one.\nSince each blocks-structured element has to be specified at the first position of a line, none of the nested list items may contain anything else than paragraphs.\n\nSome examples:\n```zmk\n# One\n# Two\n# Three\n```\nis rendered in HTML as\n:::example\n# One\n# Two\n# Three\n:::\nSimilar an unordered list:\n```zmk\n* A\n* B\n* C\n```\nis rendered in HTML as\n:::example\n* A\n* B\n* C\n:::\nA quotation list is in most cases not a real list.\nMostly, it results by copying replies from emails:\n```zmk\n> Please add some\n> more parsers to\n> the Zettelstore software.\n```\nis rendered in HTML as\n:::example\n> Please add some\n> more parsers to\n> the Zettelstore software.\n:::\n\nYou can freely mix these three types of nested lists.\nAnd you can nest them:\n```zmk\n* A\n*# A.1\n*# A.2\n*#* A.2.a\n*#* A.2.b\n*#> Quote A.2.b.I\n*#># A.2.b.I.1\n*#># A.2.b.I.2\n*# A.3\n* B\n\n* C\n```\nis rendered in HTML as:\n:::example\n* A\n*# A.1\n*# A.2\n*#* A.2.a\n*#* A.2.b\n*#> Quote A.2.b.I\n*#># A.2.b.I.1\n*#># A.2.b.I.2\n*# A.3\n* B\n\n* C\n:::\n\nPlease note that two lists cannot be separated by an empty line.\nInstead you should put a horizontal rule (\"\"thematic break\"\") between them.\nYou could also use a [[mark element|00001007040350]] or a hard line break to separate the two lists:\n```zmk\n# One\n# Two\n[!sep]\n# Uno\n# Due\n---\n# Eins\n# Zwei\n\\\n# Une\n# Deux\n```\nis rendered in HTML as\n:::example\n# One\n# Two\n[!sep]\n# Uno\n# Due\n---\n# Eins\n# Zwei\n\\\n# Une\n# Deux\n:::\nHere an example using multiple paragraphs:\n```zmk\n* Para A-1\n\n Para A-2\n* Para B-1\n (continued)\n\n Para B-2\n** Para B.b-1\n\n Para B.b-2\n Para B-3\n```\nis rendered in HTML as\n:::example\n* Para A-1\n\n Para A-2\n* Para B-1\n (continued)\n\n Para B-2\n** Para B.b-1\n\n Para B.b-2\n Para B-3\n:::"))