UNPKG

myst-spec

Version:

MyST schema, testcases, and typescript types

2,248 lines (2,247 loc) 530 kB
[ { "title": "blocks: block break node", "mdast": { "type": "root", "children": [ { "type": "blockBreak" } ] }, "myst": "+++" }, { "title": "blocks: block break node - with metadata", "mdast": { "type": "root", "children": [ { "type": "blockBreak", "meta": "{\"meta\": \"data\"}" } ] }, "myst": "+++ {\"meta\": \"data\"}" }, { "title": "blocks: block break node - with broken metadata", "mdast": { "type": "root", "children": [ { "type": "blockBreak", "meta": "{\"meta: data}" } ] }, "myst": "+++ {\"meta: data}" }, { "title": "blocks: block break nodes - dividing flow content", "mdast": { "type": "root", "children": [ { "type": "blockBreak" }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Heading!" } ] }, { "type": "blockBreak" } ] }, "myst": "+++\n# Heading!\n+++" }, { "title": "cmark_spec_0.30: Tabs - example 1", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "foo\tbaz\t\tbim" } ] }, "myst": "\tfoo\tbaz\t\tbim\n", "html": "<pre><code>foo\tbaz\t\tbim\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Tabs - example 2", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "foo\tbaz\t\tbim" } ] }, "myst": " \tfoo\tbaz\t\tbim\n", "html": "<pre><code>foo\tbaz\t\tbim\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Tabs - example 3", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "a\ta\nὐ\ta" } ] }, "myst": " a\ta\n ὐ\ta\n", "html": "<pre><code>a\ta\nὐ\ta\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Tabs - example 4", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "foo" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "bar" } ] } ] } ] } ] }, "myst": " - foo\n\n\tbar\n", "html": "<ul>\n<li>\n<p>foo</p>\n<p>bar</p>\n</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Tabs - example 5", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "foo" } ] }, { "type": "code", "lang": "", "value": " bar" } ] } ] } ] }, "myst": "- foo\n\n\t\tbar\n", "html": "<ul>\n<li>\n<p>foo</p>\n<pre><code> bar\n</code></pre>\n</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Tabs - example 6", "mdast": { "type": "root", "children": [ { "type": "blockquote", "children": [ { "type": "code", "lang": "", "value": " foo" } ] } ] }, "myst": ">\t\tfoo\n", "html": "<blockquote>\n<pre><code> foo\n</code></pre>\n</blockquote>\n" }, { "title": "cmark_spec_0.30: Tabs - example 7", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "code", "lang": "", "value": " foo" } ] } ] } ] }, "myst": "-\t\tfoo\n", "html": "<ul>\n<li>\n<pre><code> foo\n</code></pre>\n</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Tabs - example 8", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "foo\nbar" } ] }, "myst": " foo\n\tbar\n", "html": "<pre><code>foo\nbar\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Tabs - example 9", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "foo" }, { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "bar" }, { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "baz" } ] } ] } ] } ] } ] } ] } ] }, "myst": " - foo\n - bar\n\t - baz\n", "html": "<ul>\n<li>foo\n<ul>\n<li>bar\n<ul>\n<li>baz</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Tabs - example 10", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo" } ] } ] }, "myst": "#\tFoo\n", "html": "<h1>Foo</h1>\n" }, { "title": "cmark_spec_0.30: Tabs - example 11", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": "*\t*\t*\t\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 12", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" } ] } ] }, "myst": "\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~\n", "html": "<p>!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\\]^_`{|}~</p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 13", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "\\\t\\A\\a\\ \\3\\φ\\«" } ] } ] }, "myst": "\\\t\\A\\a\\ \\3\\φ\\«\n", "html": "<p>\\\t\\A\\a\\ \\3\\φ\\«</p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 14", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "*not emphasized*\n<br/> not a tag\n[not a link](/foo)\n`not code`\n1. not a list\n* not a list\n# not a heading\n[foo]: /url \"not a reference\"\n&ouml; not a character entity" } ] } ] }, "myst": "\\*not emphasized*\n\\<br/> not a tag\n\\[not a link](/foo)\n\\`not code`\n1\\. not a list\n\\* not a list\n\\# not a heading\n\\[foo]: /url \"not a reference\"\n\\&ouml; not a character entity\n", "html": "<p>*not emphasized*\n&lt;br/&gt; not a tag\n[not a link](/foo)\n`not code`\n1. not a list\n* not a list\n# not a heading\n[foo]: /url &quot;not a reference&quot;\n&amp;ouml; not a character entity</p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 15", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "\\" }, { "type": "emphasis", "children": [ { "type": "text", "value": "emphasis" } ] } ] } ] }, "myst": "\\\\*emphasis*\n", "html": "<p>\\<em>emphasis</em></p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 16", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "foo" }, { "type": "break" }, { "type": "text", "value": "bar" } ] } ] }, "myst": "foo\\\nbar\n", "html": "<p>foo<br />\nbar</p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 17", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "inlineCode", "value": "\\[\\`" } ] } ] }, "myst": "`` \\[\\` ``\n", "html": "<p><code>\\[\\`</code></p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 18", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "\\[\\]" } ] }, "myst": " \\[\\]\n", "html": "<pre><code>\\[\\]\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 19", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "\\[\\]" } ] }, "myst": "~~~\n\\[\\]\n~~~\n", "html": "<pre><code>\\[\\]\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 20", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "link", "url": "http://example.com?find=%5C*", "children": [ { "type": "text", "value": "http://example.com?find=\\*" } ] } ] } ] }, "myst": "<http://example.com?find=\\*>\n", "html": "<p><a href=\"http://example.com?find=%5C*\">http://example.com?find=\\*</a></p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 21", "mdast": { "type": "root", "children": [ { "type": "html", "value": "<a href=\"/bar\\/)\">" } ] }, "myst": "<a href=\"/bar\\/)\">\n", "html": "<a href=\"/bar\\/)\">\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 22", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "link", "url": "/bar*", "title": "ti*tle", "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "[foo](/bar\\* \"ti\\*tle\")\n", "html": "<p><a href=\"/bar*\" title=\"ti*tle\">foo</a></p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 23", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "link", "url": "/bar*", "title": "ti*tle", "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "[foo]\n\n[foo]: /bar\\* \"ti\\*tle\"\n", "html": "<p><a href=\"/bar*\" title=\"ti*tle\">foo</a></p>\n" }, { "title": "cmark_spec_0.30: Backslash escapes - example 24", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "foo+bar", "value": "foo" } ] }, "myst": "``` foo\\+bar\nfoo\n```\n", "html": "<pre><code class=\"language-foo+bar\">foo\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 25", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": " & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸" } ] } ] }, "myst": "&nbsp; &amp; &copy; &AElig; &Dcaron;\n&frac34; &HilbertSpace; &DifferentialD;\n&ClockwiseContourIntegral; &ngE;\n", "html": "<p> &amp; © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 26", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "# Ӓ Ϡ �" } ] } ] }, "myst": "&#35; &#1234; &#992; &#0;\n", "html": "<p># Ӓ Ϡ �</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 27", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "\" ആ ಫ" } ] } ] }, "myst": "&#X22; &#XD06; &#xcab;\n", "html": "<p>&quot; ആ ಫ</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 28", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "&nbsp &x; &#; &#x;\n&#87654321;\n&#abcdef0;\n&ThisIsNotDefined; &hi?;" } ] } ] }, "myst": "&nbsp &x; &#; &#x;\n&#87654321;\n&#abcdef0;\n&ThisIsNotDefined; &hi?;\n", "html": "<p>&amp;nbsp &amp;x; &amp;#; &amp;#x;\n&amp;#87654321;\n&amp;#abcdef0;\n&amp;ThisIsNotDefined; &amp;hi?;</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 29", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "&copy" } ] } ] }, "myst": "&copy\n", "html": "<p>&amp;copy</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 30", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "&MadeUpEntity;" } ] } ] }, "myst": "&MadeUpEntity;\n", "html": "<p>&amp;MadeUpEntity;</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 31", "mdast": { "type": "root", "children": [ { "type": "html", "value": "<a href=\"&ouml;&ouml;.html\">" } ] }, "myst": "<a href=\"&ouml;&ouml;.html\">\n", "html": "<a href=\"&ouml;&ouml;.html\">\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 32", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "link", "url": "/f%C3%B6%C3%B6", "title": "föö", "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "[foo](/f&ouml;&ouml; \"f&ouml;&ouml;\")\n", "html": "<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 33", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "link", "url": "/f%C3%B6%C3%B6", "title": "föö", "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "[foo]\n\n[foo]: /f&ouml;&ouml; \"f&ouml;&ouml;\"\n", "html": "<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 34", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "föö", "value": "foo" } ] }, "myst": "``` f&ouml;&ouml;\nfoo\n```\n", "html": "<pre><code class=\"language-föö\">foo\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 35", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "inlineCode", "value": "f&ouml;&ouml;" } ] } ] }, "myst": "`f&ouml;&ouml;`\n", "html": "<p><code>f&amp;ouml;&amp;ouml;</code></p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 36", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "f&ouml;f&ouml;" } ] }, "myst": " f&ouml;f&ouml;\n", "html": "<pre><code>f&amp;ouml;f&amp;ouml;\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 37", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "*foo*\n" }, { "type": "emphasis", "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "&#42;foo&#42;\n*foo*\n", "html": "<p>*foo*\n<em>foo</em></p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 38", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "* foo" } ] }, { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "foo" } ] } ] } ] }, "myst": "&#42; foo\n\n* foo\n", "html": "<p>* foo</p>\n<ul>\n<li>foo</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 39", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "foo\n\nbar" } ] } ] }, "myst": "foo&#10;&#10;bar\n", "html": "<p>foo\n\nbar</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 40", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "\tfoo" } ] } ] }, "myst": "&#9;foo\n", "html": "<p>\tfoo</p>\n" }, { "title": "cmark_spec_0.30: Entity and numeric character references - example 41", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "[a](url \"tit\")" } ] } ] }, "myst": "[a](url &quot;tit&quot;)\n", "html": "<p>[a](url &quot;tit&quot;)</p>\n" }, { "title": "cmark_spec_0.30: Precedence - example 42", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "`one" } ] }, { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "two`" } ] } ] } ] }, "myst": "- `one\n- two`\n", "html": "<ul>\n<li>`one</li>\n<li>two`</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 43", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" }, { "type": "thematicBreak" }, { "type": "thematicBreak" } ] }, "myst": "***\n---\n___\n", "html": "<hr />\n<hr />\n<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 45", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "===" } ] } ] }, "myst": "===\n", "html": "<p>===</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 46", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "--\n**\n__" } ] } ] }, "myst": "--\n**\n__\n", "html": "<p>--\n**\n__</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 47", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" }, { "type": "thematicBreak" }, { "type": "thematicBreak" } ] }, "myst": " ***\n ***\n ***\n", "html": "<hr />\n<hr />\n<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 48", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "***" } ] }, "myst": " ***\n", "html": "<pre><code>***\n</code></pre>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 49", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "Foo\n***" } ] } ] }, "myst": "Foo\n ***\n", "html": "<p>Foo\n***</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 50", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": "_____________________________________\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 51", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": " - - -\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 52", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": " ** * ** * ** * **\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 53", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": "- - - -\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 54", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" } ] }, "myst": "- - - -\n", "html": "<hr />\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 55", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "_ _ _ _ a" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "a------" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "---a---" } ] } ] }, "myst": "_ _ _ _ a\n\na------\n\n---a---\n", "html": "<p>_ _ _ _ a</p>\n<p>a------</p>\n<p>---a---</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 56", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "emphasis", "children": [ { "type": "text", "value": "-" } ] } ] } ] }, "myst": " *-*\n", "html": "<p><em>-</em></p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 57", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "foo" } ] } ] }, { "type": "thematicBreak" }, { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "bar" } ] } ] } ] }, "myst": "- foo\n***\n- bar\n", "html": "<ul>\n<li>foo</li>\n</ul>\n<hr />\n<ul>\n<li>bar</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 58", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "thematicBreak" }, { "type": "paragraph", "children": [ { "type": "text", "value": "bar" } ] } ] }, "myst": "Foo\n***\nbar\n", "html": "<p>Foo</p>\n<hr />\n<p>bar</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 59", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "bar" } ] } ] }, "myst": "Foo\n---\nbar\n", "html": "<h2>Foo</h2>\n<p>bar</p>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 60", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "Foo" } ] } ] }, { "type": "thematicBreak" }, { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "Bar" } ] } ] } ] }, "myst": "* Foo\n* * *\n* Bar\n", "html": "<ul>\n<li>Foo</li>\n</ul>\n<hr />\n<ul>\n<li>Bar</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: Thematic breaks - example 61", "mdast": { "type": "root", "children": [ { "type": "list", "ordered": false, "spread": false, "children": [ { "type": "listItem", "spread": true, "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "listItem", "spread": true, "children": [ { "type": "thematicBreak" } ] } ] } ] }, "myst": "- Foo\n- * * *\n", "html": "<ul>\n<li>Foo</li>\n<li>\n<hr />\n</li>\n</ul>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 62", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 4, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 5, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 6, "children": [ { "type": "text", "value": "foo" } ] } ] }, "myst": "# foo\n## foo\n### foo\n#### foo\n##### foo\n###### foo\n", "html": "<h1>foo</h1>\n<h2>foo</h2>\n<h3>foo</h3>\n<h4>foo</h4>\n<h5>foo</h5>\n<h6>foo</h6>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 63", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "####### foo" } ] } ] }, "myst": "####### foo\n", "html": "<p>####### foo</p>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 64", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "#5 bolt" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "#hashtag" } ] } ] }, "myst": "#5 bolt\n\n#hashtag\n", "html": "<p>#5 bolt</p>\n<p>#hashtag</p>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 65", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "## foo" } ] } ] }, "myst": "\\## foo\n", "html": "<p>## foo</p>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 66", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo " }, { "type": "emphasis", "children": [ { "type": "text", "value": "bar" } ] }, { "type": "text", "value": " *baz*" } ] } ] }, "myst": "# foo *bar* \\*baz\\*\n", "html": "<h1>foo <em>bar</em> *baz*</h1>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 67", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo" } ] } ] }, "myst": "# foo\n", "html": "<h1>foo</h1>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 68", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo" } ] } ] }, "myst": " ### foo\n ## foo\n # foo\n", "html": "<h3>foo</h3>\n<h2>foo</h2>\n<h1>foo</h1>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 69", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "# foo" } ] }, "myst": " # foo\n", "html": "<pre><code># foo\n</code></pre>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 70", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "foo\n# bar" } ] } ] }, "myst": "foo\n # bar\n", "html": "<p>foo\n# bar</p>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 71", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "bar" } ] } ] }, "myst": "## foo ##\n ### bar ###\n", "html": "<h2>foo</h2>\n<h3>bar</h3>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 72", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "heading", "depth": 5, "children": [ { "type": "text", "value": "foo" } ] } ] }, "myst": "# foo ##################################\n##### foo ##\n", "html": "<h1>foo</h1>\n<h5>foo</h5>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 73", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "foo" } ] } ] }, "myst": "### foo ###\n", "html": "<h3>foo</h3>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 74", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "foo ### b" } ] } ] }, "myst": "### foo ### b\n", "html": "<h3>foo ### b</h3>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 75", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo#" } ] } ] }, "myst": "# foo#\n", "html": "<h1>foo#</h1>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 76", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 3, "children": [ { "type": "text", "value": "foo ###" } ] }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "foo ###" } ] }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "foo #" } ] } ] }, "myst": "### foo \\###\n## foo #\\##\n# foo \\#\n", "html": "<h3>foo ###</h3>\n<h2>foo ###</h2>\n<h1>foo #</h1>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 77", "mdast": { "type": "root", "children": [ { "type": "thematicBreak" }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "foo" } ] }, { "type": "thematicBreak" } ] }, "myst": "****\n## foo\n****\n", "html": "<hr />\n<h2>foo</h2>\n<hr />\n" }, { "title": "cmark_spec_0.30: ATX headings - example 78", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "Foo bar" } ] }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "baz" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "Bar foo" } ] } ] }, "myst": "Foo bar\n# baz\nBar foo\n", "html": "<p>Foo bar</p>\n<h1>baz</h1>\n<p>Bar foo</p>\n" }, { "title": "cmark_spec_0.30: ATX headings - example 79", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [] }, { "type": "heading", "depth": 1, "children": [] }, { "type": "heading", "depth": 3, "children": [] } ] }, "myst": "## \n#\n### ###\n", "html": "<h2></h2>\n<h1></h1>\n<h3></h3>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 80", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo " }, { "type": "emphasis", "children": [ { "type": "text", "value": "bar" } ] } ] }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo " }, { "type": "emphasis", "children": [ { "type": "text", "value": "bar" } ] } ] } ] }, "myst": "Foo *bar*\n=========\n\nFoo *bar*\n---------\n", "html": "<h1>Foo <em>bar</em></h1>\n<h2>Foo <em>bar</em></h2>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 81", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo " }, { "type": "emphasis", "children": [ { "type": "text", "value": "bar\nbaz" } ] } ] } ] }, "myst": "Foo *bar\nbaz*\n====\n", "html": "<h1>Foo <em>bar\nbaz</em></h1>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 82", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo " }, { "type": "emphasis", "children": [ { "type": "text", "value": "bar\nbaz" } ] } ] } ] }, "myst": " Foo *bar\nbaz*\t\n====\n", "html": "<h1>Foo <em>bar\nbaz</em></h1>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 83", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo" } ] } ] }, "myst": "Foo\n-------------------------\n\nFoo\n=\n", "html": "<h2>Foo</h2>\n<h1>Foo</h1>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 84", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "heading", "depth": 1, "children": [ { "type": "text", "value": "Foo" } ] } ] }, "myst": " Foo\n---\n\n Foo\n-----\n\n Foo\n ===\n", "html": "<h2>Foo</h2>\n<h2>Foo</h2>\n<h1>Foo</h1>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 85", "mdast": { "type": "root", "children": [ { "type": "code", "lang": "", "value": "Foo\n---\n\nFoo" }, { "type": "thematicBreak" } ] }, "myst": " Foo\n ---\n\n Foo\n---\n", "html": "<pre><code>Foo\n---\n\nFoo\n</code></pre>\n<hr />\n" }, { "title": "cmark_spec_0.30: Setext headings - example 86", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] } ] }, "myst": "Foo\n ----\n", "html": "<h2>Foo</h2>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 87", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "Foo\n---" } ] } ] }, "myst": "Foo\n ---\n", "html": "<p>Foo\n---</p>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 88", "mdast": { "type": "root", "children": [ { "type": "paragraph", "children": [ { "type": "text", "value": "Foo\n= =" } ] }, { "type": "paragraph", "children": [ { "type": "text", "value": "Foo" } ] }, { "type": "thematicBreak" } ] }, "myst": "Foo\n= =\n\nFoo\n--- -\n", "html": "<p>Foo\n= =</p>\n<p>Foo</p>\n<hr />\n" }, { "title": "cmark_spec_0.30: Setext headings - example 89", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo" } ] } ] }, "myst": "Foo \n-----\n", "html": "<h2>Foo</h2>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 90", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2, "children": [ { "type": "text", "value": "Foo\\" } ] } ] }, "myst": "Foo\\\n----\n", "html": "<h2>Foo\\</h2>\n" }, { "title": "cmark_spec_0.30: Setext headings - example 91", "mdast": { "type": "root", "children": [ { "type": "heading", "depth": 2,