initial paragraph
--+blockquote
-
initial paragraph
+bold +emphasis
+import { foo } from "bar";
console.log(foo());
inline code
bold -emphasis -link
+item
This is hardly a "corner case," for some reason.
+code
+++blockquote
+
This is hardly a "corner case," for some reason.
diff --git a/test/snapshots/simple.markdownit.json b/test/snapshots/simple.markdownit.json index 05822b7..6070be5 100644 --- a/test/snapshots/simple.markdownit.json +++ b/test/snapshots/simple.markdownit.json @@ -9,20 +9,59 @@ { "type": "h1", "children": [ - "Title" + "Markdown Testing Page" ] }, { - "type": "blockquote", + "type": "h2", + "children": [ + "Formatting" + ] + }, + { + "type": "p", "children": [ { - "type": "p", + "type": "strong", "children": [ - "blockquote" + "bold" + ] + }, + "\n", + { + "type": "em", + "children": [ + "emphasis" ] } ] }, + { + "type": "h2", + "children": [ + "Links" + ] + }, + { + "type": "p", + "children": [ + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "https://example.com" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Code" + ] + }, { "type": "code", "children": [ @@ -44,31 +83,9 @@ ] }, { - "type": "p", + "type": "h2", "children": [ - { - "type": "strong", - "children": [ - "bold" - ] - }, - "\n", - { - "type": "em", - "children": [ - "emphasis" - ] - }, - "\n", - { - "type": "a", - "children": [ - "link" - ], - "props": { - "href": "https://example.com" - } - } + "Lists" ] }, { @@ -106,12 +123,9 @@ ] }, { - "type": "hr" - }, - { - "type": "p", + "type": "h2", "children": [ - "This is hardly a \"corner case,\" for some reason." + "Image" ] }, { @@ -134,6 +148,81 @@ } } ] + }, + { + "type": "h2", + "children": [ + "Headings" + ] + }, + { + "type": "h3", + "children": [ + "h3 with ", + { + "type": "code", + "children": [ + "code" + ] + } + ] + }, + { + "type": "h4", + "children": [ + "🐈 h4 with emoji" + ] + }, + { + "type": "h4", + "children": [ + "h5 with ", + { + "type": "strong", + "children": [ + "bold" + ] + }, + " text" + ] + }, + { + "type": "h6", + "children": [ + "h6 with ", + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "./link" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Other" + ] + }, + { + "type": "blockquote", + "children": [ + { + "type": "p", + "children": [ + "blockquote" + ] + } + ] + }, + { + "type": "p", + "children": [ + "This is hardly a \"corner case,\" for some reason." + ] } ] } \ No newline at end of file diff --git a/test/snapshots/simple.md4w.json b/test/snapshots/simple.md4w.json index 05822b7..996c375 100644 --- a/test/snapshots/simple.md4w.json +++ b/test/snapshots/simple.md4w.json @@ -9,20 +9,59 @@ { "type": "h1", "children": [ - "Title" + "Markdown Testing Page" ] }, { - "type": "blockquote", + "type": "h2", + "children": [ + "Formatting" + ] + }, + { + "type": "p", "children": [ { - "type": "p", + "type": "strong", "children": [ - "blockquote" + "bold" + ] + }, + "\n", + { + "type": "em", + "children": [ + "emphasis" ] } ] }, + { + "type": "h2", + "children": [ + "Links" + ] + }, + { + "type": "p", + "children": [ + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "https://example.com" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Code" + ] + }, { "type": "code", "children": [ @@ -44,31 +83,9 @@ ] }, { - "type": "p", + "type": "h2", "children": [ - { - "type": "strong", - "children": [ - "bold" - ] - }, - "\n", - { - "type": "em", - "children": [ - "emphasis" - ] - }, - "\n", - { - "type": "a", - "children": [ - "link" - ], - "props": { - "href": "https://example.com" - } - } + "Lists" ] }, { @@ -106,12 +123,9 @@ ] }, { - "type": "hr" - }, - { - "type": "p", + "type": "h2", "children": [ - "This is hardly a \"corner case,\" for some reason." + "Image" ] }, { @@ -134,6 +148,81 @@ } } ] + }, + { + "type": "h2", + "children": [ + "Headings" + ] + }, + { + "type": "h3", + "children": [ + "h3 with ", + { + "type": "code", + "children": [ + "code" + ] + } + ] + }, + { + "type": "h4", + "children": [ + "🐈 h4 with emoji" + ] + }, + { + "type": "h4", + "children": [ + "h5 with ", + { + "type": "strong", + "children": [ + "bold" + ] + }, + " text" + ] + }, + { + "type": "h6", + "children": [ + "h6 with ", + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "./link" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Other" + ] + }, + { + "type": "blockquote", + "children": [ + { + "type": "p", + "children": [ + "blockquote" + ] + } + ] + }, + { + "type": "p", + "children": [ + "This is hardly a \"corner case,\" for some reason." + ] } ] -} \ No newline at end of file +} diff --git a/test/snapshots/simple.mdast.json b/test/snapshots/simple.mdast.json index 05822b7..6070be5 100644 --- a/test/snapshots/simple.mdast.json +++ b/test/snapshots/simple.mdast.json @@ -9,20 +9,59 @@ { "type": "h1", "children": [ - "Title" + "Markdown Testing Page" ] }, { - "type": "blockquote", + "type": "h2", + "children": [ + "Formatting" + ] + }, + { + "type": "p", "children": [ { - "type": "p", + "type": "strong", "children": [ - "blockquote" + "bold" + ] + }, + "\n", + { + "type": "em", + "children": [ + "emphasis" ] } ] }, + { + "type": "h2", + "children": [ + "Links" + ] + }, + { + "type": "p", + "children": [ + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "https://example.com" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Code" + ] + }, { "type": "code", "children": [ @@ -44,31 +83,9 @@ ] }, { - "type": "p", + "type": "h2", "children": [ - { - "type": "strong", - "children": [ - "bold" - ] - }, - "\n", - { - "type": "em", - "children": [ - "emphasis" - ] - }, - "\n", - { - "type": "a", - "children": [ - "link" - ], - "props": { - "href": "https://example.com" - } - } + "Lists" ] }, { @@ -106,12 +123,9 @@ ] }, { - "type": "hr" - }, - { - "type": "p", + "type": "h2", "children": [ - "This is hardly a \"corner case,\" for some reason." + "Image" ] }, { @@ -134,6 +148,81 @@ } } ] + }, + { + "type": "h2", + "children": [ + "Headings" + ] + }, + { + "type": "h3", + "children": [ + "h3 with ", + { + "type": "code", + "children": [ + "code" + ] + } + ] + }, + { + "type": "h4", + "children": [ + "🐈 h4 with emoji" + ] + }, + { + "type": "h4", + "children": [ + "h5 with ", + { + "type": "strong", + "children": [ + "bold" + ] + }, + " text" + ] + }, + { + "type": "h6", + "children": [ + "h6 with ", + { + "type": "a", + "children": [ + "link" + ], + "props": { + "href": "./link" + } + } + ] + }, + { + "type": "h2", + "children": [ + "Other" + ] + }, + { + "type": "blockquote", + "children": [ + { + "type": "p", + "children": [ + "blockquote" + ] + } + ] + }, + { + "type": "p", + "children": [ + "This is hardly a \"corner case,\" for some reason." + ] } ] } \ No newline at end of file