((META (EMPTY-STRING title "Zettelmarkup: Block-Structured Elements") (WORD role "manual") (TAG-SET tags ("#manual" "#zettelmarkup" "#zettelstore")) (WORD syntax "zmk") (ZID-SET back ("00001007000000" "00001007010000" "00001007040324" "00001007050000" "00001007800000" "00001007906000" "00001007990000" "00001012931000")) (ZID-SET backward ("00001007000000" "00001007010000" "00001007031200" "00001007040324" "00001007050000" "00001007800000" "00001007906000" "00001007990000" "00001012931000")) (NUMBER box-number "1") (STRING copyright "(c) 2020-present by Detlef Stern ") (TIMESTAMP created "20210126175322") (ZID-SET forward ("00001007030100" "00001007030200" "00001007030300" "00001007030400" "00001007030500" "00001007030600" "00001007030700" "00001007030800" "00001007030900" "00001007031000" "00001007031100" "00001007031200" "00001007031300" "00001007031400" "00001007040000")) (WORD lang "en") (EMPTY-STRING license "EUPL-1.2-or-later") (TIMESTAMP modified "20241212153023") (TIMESTAMP published "20241212153023") (WORD visibility "public")) (BLOCK (PARA (TEXT "Every markup for blocks-structured elements (") (FORMAT-QUOTE () (TEXT "blocks")) (TEXT ") begins at the very first position of a line.")) (PARA (TEXT "There are five kinds of blocks: lists, one-line blocks, line-range blocks, tables, and paragraphs.")) (HEADING 1 () "lists" "lists" (TEXT "Lists")) (PARA (TEXT "In Zettelmarkup, lists themselves are not specified, but list items.") (SOFT) (TEXT "A sequence of list items is considered as a list.")) (PARA (LINK-ZETTEL () "00001007030100" (TEXT "Description lists")) (TEXT " contain two different item types: the term to be described and the description itself.") (SOFT) (TEXT "These cannot be combined with other lists.")) (PARA (TEXT "Ordered lists, unordered lists, and quotation lists can be combined into ") (LINK-ZETTEL () "00001007030200" (TEXT "nested lists")) (TEXT ".")) (HEADING 1 () "one-line-blocks" "one-line-blocks" (TEXT "One-line blocks")) (UNORDERED (INLINE (LINK-ZETTEL () "00001007030300" (TEXT "Headings")) (TEXT " allow to structure the content of a zettel.")) (INLINE (TEXT "The ") (LINK-ZETTEL () "00001007030400" (TEXT "horizontal rule")) (TEXT " signals a thematic break")) (INLINE (TEXT "A ") (LINK-ZETTEL () "00001007031100" (TEXT "transclusion")) (TEXT " embeds the content of one zettel into another."))) (HEADING 1 () "line-range-blocks" "line-range-blocks" (TEXT "Line-range blocks")) (PARA (TEXT "This kind of blocks encompass at least two lines.") (SOFT) (TEXT "To be useful, they encompass more lines.") (SOFT) (TEXT "They begin with at least three identical characters at the first position of the beginning line.") (SOFT) (TEXT "They end at the line, that contains at least the same number of these identical characters, beginning at the first position of that line.") (SOFT) (TEXT "This allows line-range blocks to be nested.") (SOFT) (TEXT "Additionally, all other blocks elements are allowed in line-range blocks.")) (UNORDERED (INLINE (LINK-ZETTEL () "00001007030500" (TEXT "Verbatim blocks")) (TEXT " do not interpret their content,")) (INLINE (LINK-ZETTEL () "00001007030600" (TEXT "Quotation blocks")) (TEXT " specify a block-length quotations,")) (INLINE (LINK-ZETTEL () "00001007030700" (TEXT "Verse blocks")) (TEXT " allow to enter poetry, lyrics and similar text, where line endings are important,")) (INLINE (LINK-ZETTEL () "00001007030800" (TEXT "Region blocks")) (TEXT " just mark regions, e.g. for common formatting,")) (INLINE (LINK-ZETTEL () "00001007030900" (TEXT "Comment blocks")) (TEXT " allow to enter text that will be ignored when rendered.")) (INLINE (LINK-ZETTEL () "00001007031300" (TEXT "Evaluation blocks")) (TEXT " specify some content to be evaluated by either Zettelstore or external software.")) (INLINE (LINK-ZETTEL () "00001007031400" (TEXT "Math-mode blocks")) (TEXT " can be used to enter mathematical formulas / equations.")) (INLINE (LINK-ZETTEL () "00001007031200" (TEXT "Inline-Zettel blocks")) (TEXT " provide a mechanism to specify zettel content with a new syntax without creating a new zettel."))) (HEADING 1 () "tables" "tables" (TEXT "Tables")) (PARA (TEXT "Similar to lists are tables not specified explicitly.") (SOFT) (TEXT "A sequence of table rows is considered a ") (LINK-ZETTEL () "00001007031000" (TEXT "table")) (TEXT ".") (SOFT) (TEXT "A table row itself is a sequence of table cells.")) (HEADING 1 () "paragraphs" "paragraphs" (TEXT "Paragraphs")) (PARA (TEXT "Any line that does not conform to another blocks-structured element begins a paragraph.") (SOFT) (TEXT "This has the implication that a mistyped syntax element for a block element will be part of the paragraph. For example:")) (VERBATIM-CODE (("" . "zmk")) "= Heading\nSome text follows.") (PARA (TEXT "will be rendered in HTML as")) (REGION-BLOCK (("" . "example")) ((PARA (TEXT "= Heading") (SOFT) (TEXT "Some text follows.")))) (PARA (TEXT "This is because headings need at least three equal sign character.")) (PARA (TEXT "A paragraph is essentially a sequence of ") (LINK-ZETTEL () "00001007040000" (TEXT "inline-structured elements")) (TEXT ".") (SOFT) (TEXT "Inline-structured elements can span more than one line.") (SOFT) (TEXT "Paragraphs are separated by empty lines.")) (PARA (TEXT "If you want to specify a second paragraph inside a list item, or if you want to continue a paragraph on a second and more line within a list item, you must begin the paragraph with a certain number of space characters.") (SOFT) (TEXT "The number of space characters depends on the kind of a list and the relevant nesting level.")) (PARA (TEXT "A line that begins with a space character and which is outside of a list or does not contain the right number of space characters is considered to be part of a paragraph."))))