(BLOCK (PARA (TEXT "Math-mode blocks are used to enter mathematical formulas / equations in a display style mode.") (SOFT) (TEXT "Similar to a ") (LINK-ZETTEL () "00001007031300" (TEXT "evaluation blocks")) (TEXT ", the block content will be interpreted by either Zettelstore or an external software.") (SOFT) (TEXT "They begin with at least three dollar sign characters (") (FORMAT-QUOTE () (LITERAL-INPUT () "$")) (TEXT ", U+0024) at the first position of a line.")) (PARA (TEXT "You can add some ") (LINK-ZETTEL () "00001007050000" (TEXT "attributes")) (TEXT " on the beginning line of a verbatim block, following the initiating characters.") (SOFT) (TEXT "A math-mode block supports the default attribute") (ENDNOTE () (TEXT "Depending on the syntax value.")) (TEXT ": when given, all spaces in the text are rendered in HTML as open box characters (U+2423).") (SOFT) (TEXT "If you want to give only one attribute and this attribute is the generic attribute, you can omit the most of the attribute syntax and just specify the value.") (SOFT) (TEXT "It will be interpreted as a ") (LINK-ZETTEL () "00001008000000" (TEXT "syntax")) (TEXT " value to evaluate its content.") (SOFT) (TEXT "Alternatively, you could provide an attribute with the key ") (FORMAT-QUOTE () (TEXT "syntax")) (TEXT " and use the value to specify the syntax.") (SOFT) (TEXT "Not all syntax values are supported by Zettelstore.") (ENDNOTE () (TEXT "Currently: none.")) (SOFT) (TEXT "External software might support several values via the ") (LINK-ZETTEL () "00001012920516" (TEXT "sz encoding")) (TEXT ".")) (PARA (TEXT "Any other character in this line will be ignored")) (PARA (TEXT "Text following the beginning line will not be interpreted, until a line begins with at least the same number of the same characters given at the beginning line.") (SOFT) (TEXT "This allows to enter some dollar-sign characters in the text that should not be interpreted.")) (PARA (TEXT "For example:")) (VERBATIM-CODE (("" . "zmk")) "$$$$\n$$$\n$$$$") (PARA (TEXT "will be rendered in HTML as:")) (REGION-BLOCK (("" . "example")) ((VERBATIM-MATH () "$$$"))) (VERBATIM-CODE (("" . "zmk")) "$$${-}\nThis is some\ntext with no \n real sense.\n$$$$") (PARA (TEXT "will be rendered as:")) (REGION-BLOCK (("" . "example")) ((VERBATIM-MATH (("-" . "")) "This is some\ntext with no \n real sense."))) (PARA (TEXT "In the future, Zettelstore might somehow support mathematical formulae with a ") (LITERAL-MATH () "\\TeX") (TEXT "-like syntax.") (SOFT) (TEXT "Until then,")) (VERBATIM-CODE (("" . "zmk")) "$$$\n\\begin{align*}\n f(x) &= x^2\\\\\n g(x) &= \\frac{1}{x}\\\\\n F(x) &= \\int^a_b \\frac{1}{3}x^3\n\\end{align*}\n$$$") (PARA (TEXT "is rendered as:")) (REGION-BLOCK (("" . "example")) ((VERBATIM-MATH () "\\begin{align*}\n f(x) &= x^2\\\\\n g(x) &= \\frac{1}{x}\\\\\n F(x) &= \\int^a_b \\frac{1}{3}x^3\n\\end{align*}"))))