(zettel (meta (back "00001006000000 00001008000000 00001008010000 00001012920513") (backward "00001006000000 00001007000000 00001007031200 00001008000000 00001008010000 00001012920513") (box-number "1") (created "20220113183435") (forward "00001007000000 00001007031200 00001007040200 00001007050000") (modified "20250115200458") (published "20250115200458") (role "manual") (syntax "zmk") (tags "#manual #markdown #zettelstore") (title "CommonMark") (url "https://commonmark.org/")) (rights 4) (encoding "") (content "[[CommonMark|https://commonmark.org/]] is a Markdown dialect, an [[attempt|https://xkcd.com/927/]] to unify all the different, divergent dialects of Markdown by providing an unambiguous syntax specification for Markdown, together with a suite of comprehensive tests to validate implementation.\n\nTime will show, if this attempt is successful.\n\nHowever, CommonMark is a well specified Markdown dialect, in contrast to most (if not all) other dialects.\nOther software adopts CommonMark somehow, notably [[GitHub Flavored Markdown|https://github.github.com/gfm/]] (GFM).\nBut they provide proprietary extensions, which makes it harder to change to another CommonMark implementation if needed.\nPlus, they sometimes build on an older specification of CommonMark.\n\nZettelstore supports the latest CommonMark [[specification version 0.31.2 (2024-01-28)|https://spec.commonmark.org/0.31.2/]].\nIf possible, Zettelstore will adapt to newer versions when they are available.\n\nTo provide CommonMark support, Zettelstore uses currently the [[Goldmark|https://github.com/yuin/goldmark]] implementation, which passes all validation tests of CommonMark.\nEffectively, Markdown and CommonMark are super-sets of HTML.\nInternally, CommonMark is translated into [[Zettelmarkup|00001007000000]].\nSince Zettelmarkup supports HTML content only at the block level via [[Inline Zettel|00001007031200]], most uses of HTML within a CommonMark zettel are not translated as expected.\nInstead, inline level HTML is translated into [[literal text|00001007040200#literal-text]] with a [[generic attribute|00001007050000]] set to ``html``.\n\nTherefore, Zettelstore itself will not pass the CommonMark test suite fully.\nHowever, no CommonMark language element except inline HTML will fail to be encoded as HTML.\nIn most cases, the differences are not visible for a user, but only by comparing the generated HTML code."))