diff --git a/package.json b/package.json index 2795f910..038470f7 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "test-cover": "c8 --100 npm test", "test-declaration": "cd example/typescript && tsc --module nodenext && tsc --module commonjs && node type-check.js", "test-extra": "ava --timeout=10m test/markdownlint-test-extra-parse.js test/markdownlint-test-extra-type.js", - "update-snapshots": "ava --update-snapshots test/markdownlint-test-micromark.mjs test/markdownlint-test-scenarios.js", + "update-snapshots": "ava --update-snapshots test/markdownlint-test-custom-rules.js test/markdownlint-test-micromark.mjs test/markdownlint-test-scenarios.js", "update-snapshots-test-repos": "ava --timeout=10m --update-snapshots test/markdownlint-test-repos-*.js", "upgrade": "npx --yes npm-check-updates --upgrade" }, diff --git a/test/markdownlint-test-custom-rules.js b/test/markdownlint-test-custom-rules.js index e3cb1117..f42b3321 100644 --- a/test/markdownlint-test-custom-rules.js +++ b/test/markdownlint-test-custom-rules.js @@ -622,7 +622,7 @@ test("customRulesParserMicromark", (t) => { }); }); -test("customRulesParamsTokensSameObject", (t) => { +test("customRulesMarkdownItParamsTokensSameObject", (t) => { t.plan(1); // eslint-disable-next-line jsdoc/valid-types /** @type import("../lib/markdownlint").Options */ @@ -647,6 +647,29 @@ test("customRulesParamsTokensSameObject", (t) => { return markdownlint.promises.markdownlint(options).then(() => null); }); +test("customRulesMarkdownItTokensSnapshot", (t) => { + t.plan(1); + // eslint-disable-next-line jsdoc/valid-types + /** @type import("../lib/markdownlint").Options */ + const options = { + "customRules": [ + { + "names": [ "name" ], + "description": "description", + "tags": [ "tag" ], + "parser": "markdownit", + "function": + (params) => { + t.snapshot(params.parsers.markdownit.tokens, "Unexpected tokens"); + } + } + ], + "files": "./test/every-markdown-syntax.md", + "noInlineConfig": true + }; + return markdownlint.promises.markdownlint(options).then(() => null); +}); + test("customRulesDefinitionStatic", (t) => new Promise((resolve) => { t.plan(2); // eslint-disable-next-line jsdoc/valid-types diff --git a/test/snapshots/markdownlint-test-custom-rules.js.md b/test/snapshots/markdownlint-test-custom-rules.js.md new file mode 100644 index 00000000..fb9a6a44 --- /dev/null +++ b/test/snapshots/markdownlint-test-custom-rules.js.md @@ -0,0 +1,3067 @@ +# Snapshot report for `test/markdownlint-test-custom-rules.js` + +The actual snapshot is saved in `markdownlint-test-custom-rules.js.snap`. + +Generated by [AVA](https://avajs.dev). + +## customRulesMarkdownItTokensSnapshot + +> Unexpected tokens + + [ + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Every Markdown Syntax', + lineNumber: 1, + map: [ + 0, + 2, + ], + markup: '=', + meta: null, + nesting: 1, + tag: 'h1', + type: 'heading_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Every Markdown Syntax', + hidden: false, + info: '', + level: 0, + line: 'Every Markdown Syntax', + lineNumber: 1, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Every Markdown Syntax', + hidden: false, + info: '', + level: 1, + line: 'Every Markdown Syntax', + lineNumber: 1, + map: [ + 0, + 1, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '=', + meta: null, + nesting: -1, + tag: 'h1', + type: 'heading_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '## Level 2 ATX Heading', + lineNumber: 4, + map: [ + 3, + 4, + ], + markup: '##', + meta: null, + nesting: 1, + tag: 'h2', + type: 'heading_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Level 2 ATX Heading', + hidden: false, + info: '', + level: 0, + line: '## Level 2 ATX Heading', + lineNumber: 4, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Level 2 ATX Heading', + hidden: false, + info: '', + level: 1, + line: '## Level 2 ATX Heading', + lineNumber: 4, + map: [ + 3, + 4, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '##', + meta: null, + nesting: -1, + tag: 'h2', + type: 'heading_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '### Level 3 Closed ATX Heading ###', + lineNumber: 6, + map: [ + 5, + 6, + ], + markup: '###', + meta: null, + nesting: 1, + tag: 'h3', + type: 'heading_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Level 3 Closed ATX Heading', + hidden: false, + info: '', + level: 0, + line: '### Level 3 Closed ATX Heading ###', + lineNumber: 6, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Level 3 Closed ATX Heading', + hidden: false, + info: '', + level: 1, + line: '### Level 3 Closed ATX Heading ###', + lineNumber: 6, + map: [ + 5, + 6, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '###', + meta: null, + nesting: -1, + tag: 'h3', + type: 'heading_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '---', + lineNumber: 8, + map: [ + 7, + 8, + ], + markup: '---', + meta: null, + nesting: 0, + tag: 'hr', + type: 'hr', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: [ + 9, + 13, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Text ', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '*', + meta: null, + nesting: 1, + tag: 'em', + type: 'em_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'emphasized', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '*', + meta: null, + nesting: -1, + tag: 'em', + type: 'em_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '**', + meta: null, + nesting: 1, + tag: 'strong', + type: 'strong_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'strong', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '**', + meta: null, + nesting: -1, + tag: 'strong', + type: 'strong_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '_', + meta: null, + nesting: 1, + tag: 'em', + type: 'em_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '__', + meta: null, + nesting: 1, + tag: 'strong', + type: 'strong_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'emphasized+strong', + hidden: false, + info: '', + level: 2, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '__', + meta: null, + nesting: -1, + tag: 'strong', + type: 'strong_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '_', + meta: null, + nesting: -1, + tag: 'em', + type: 'em_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: '.', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'softbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'Text ', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'code', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '`', + meta: null, + nesting: 0, + tag: 'code', + type: 'code_inline', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'html_inline', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'html', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'html_inline', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: [ + [ + 'href', + 'https://example.com/page', + ], + ], + block: false, + children: null, + content: '', + hidden: false, + info: 'auto', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: 'autolink', + meta: null, + nesting: 1, + tag: 'a', + type: 'link_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'https://example.com/page', + hidden: false, + info: '', + level: 1, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: 'auto', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: 'autolink', + meta: null, + nesting: -1, + tag: 'a', + type: 'link_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: '.', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text `code` html .', + lineNumber: 11, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'softbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'Text ', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: [ + [ + 'href', + 'https://example.com/page', + ], + ], + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 1, + tag: 'a', + type: 'link_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'link', + hidden: false, + info: '', + level: 1, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'a', + type: 'link_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: [ + [ + 'href', + 'https://example.com/page', + ], + [ + 'title', + 'Title', + ], + ], + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 1, + tag: 'a', + type: 'link_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'link', + hidden: false, + info: '', + level: 1, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'a', + type: 'link_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: [ + [ + 'href', + 'https://example.com/page', + ], + [ + 'title', + 'Title', + ], + ], + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 1, + tag: 'a', + type: 'link_open', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'link', + hidden: false, + info: '', + level: 1, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'a', + type: 'link_close', + }, + Token { + attrs: null, + block: false, + children: null, + content: ' ', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: [ + [ + 'src', + 'https://example.com/page', + ], + [ + 'alt', + '', + ], + [ + 'title', + 'Title', + ], + ], + block: false, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'image', + hidden: false, + info: '', + level: 0, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'image', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'img', + type: 'image', + }, + Token { + attrs: null, + block: false, + children: null, + content: '.', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Text [link](https://example.com/page) [link][] [link] ![image][link].', + lineNumber: 12, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'softbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'Text https://example.com/page.', + hidden: false, + info: '', + level: 0, + line: 'Text https://example.com/page.', + lineNumber: 13, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: `Text *emphasized* **strong** ___emphasized+strong___.␊ + Text \`code\` html .␊ + Text [link](https://example.com/page) [link][] [link] ![image][link].␊ + Text https://example.com/page.`, + hidden: false, + info: '', + level: 1, + line: 'Text *emphasized* **strong** ___emphasized+strong___.', + lineNumber: 10, + map: [ + 9, + 13, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Hard ', + lineNumber: 15, + map: [ + 14, + 16, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Hard', + hidden: false, + info: '', + level: 0, + line: 'Hard ', + lineNumber: 15, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: 'Hard ', + lineNumber: 15, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'hardbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'line break', + hidden: false, + info: '', + level: 0, + line: 'line break', + lineNumber: 16, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: `Hard ␊ + line break`, + hidden: false, + info: '', + level: 1, + line: 'Hard ', + lineNumber: 15, + map: [ + 14, + 16, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '> Block quote', + lineNumber: 20, + map: [ + 19, + 21, + ], + markup: '>', + meta: null, + nesting: 1, + tag: 'blockquote', + type: 'blockquote_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '> Block quote', + lineNumber: 20, + map: [ + 19, + 20, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Block quote', + hidden: false, + info: '', + level: 0, + line: '> Block quote', + lineNumber: 20, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Block quote', + hidden: false, + info: '', + level: 2, + line: '> Block quote', + lineNumber: 20, + map: [ + 19, + 20, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '> > Nested', + lineNumber: 21, + map: [ + 20, + 21, + ], + markup: '>', + meta: null, + nesting: 1, + tag: 'blockquote', + type: 'blockquote_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + line: '> > Nested', + lineNumber: 21, + map: [ + 20, + 21, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Nested', + hidden: false, + info: '', + level: 0, + line: '> > Nested', + lineNumber: 21, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Nested', + hidden: false, + info: '', + level: 3, + line: '> > Nested', + lineNumber: 21, + map: [ + 20, + 21, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '>', + meta: null, + nesting: -1, + tag: 'blockquote', + type: 'blockquote_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '>', + meta: null, + nesting: -1, + tag: 'blockquote', + type: 'blockquote_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '- Unordered', + lineNumber: 23, + map: [ + 22, + 28, + ], + markup: '-', + meta: null, + nesting: 1, + tag: 'ul', + type: 'bullet_list_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '- Unordered', + lineNumber: 23, + map: [ + 22, + 23, + ], + markup: '-', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + line: '- Unordered', + lineNumber: 23, + map: [ + 22, + 23, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Unordered', + hidden: false, + info: '', + level: 0, + line: '- Unordered', + lineNumber: 23, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Unordered', + hidden: false, + info: '', + level: 3, + line: '- Unordered', + lineNumber: 23, + map: [ + 22, + 23, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '-', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '- List', + lineNumber: 24, + map: [ + 23, + 28, + ], + markup: '-', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + line: '- List', + lineNumber: 24, + map: [ + 23, + 24, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'List', + hidden: false, + info: '', + level: 0, + line: '- List', + lineNumber: 24, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'List', + hidden: false, + info: '', + level: 3, + line: '- List', + lineNumber: 24, + map: [ + 23, + 24, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + line: ' - Items', + lineNumber: 25, + map: [ + 24, + 28, + ], + markup: '-', + meta: null, + nesting: 1, + tag: 'ul', + type: 'bullet_list_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: ' - Items', + lineNumber: 25, + map: [ + 24, + 28, + ], + markup: '-', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + line: ' - Items', + lineNumber: 25, + map: [ + 24, + 26, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Items', + hidden: false, + info: '', + level: 0, + line: ' - Items', + lineNumber: 25, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: ' - Items', + lineNumber: 25, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'softbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'Indented', + hidden: false, + info: '', + level: 0, + line: ' Indented', + lineNumber: 26, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: `Items␊ + Indented`, + hidden: false, + info: '', + level: 5, + line: ' - Items', + lineNumber: 25, + map: [ + 24, + 26, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + line: ' Content', + lineNumber: 28, + map: [ + 27, + 28, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Content', + hidden: false, + info: '', + level: 0, + line: ' Content', + lineNumber: 28, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Content', + hidden: false, + info: '', + level: 5, + line: ' Content', + lineNumber: 28, + map: [ + 27, + 28, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + map: null, + markup: '-', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + map: null, + markup: '-', + meta: null, + nesting: -1, + tag: 'ul', + type: 'bullet_list_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '-', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '-', + meta: null, + nesting: -1, + tag: 'ul', + type: 'bullet_list_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '1. Ordered', + lineNumber: 30, + map: [ + 29, + 35, + ], + markup: '.', + meta: null, + nesting: 1, + tag: 'ol', + type: 'ordered_list_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '1', + level: 1, + line: '1. Ordered', + lineNumber: 30, + map: [ + 29, + 30, + ], + markup: '.', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + line: '1. Ordered', + lineNumber: 30, + map: [ + 29, + 30, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Ordered', + hidden: false, + info: '', + level: 0, + line: '1. Ordered', + lineNumber: 30, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Ordered', + hidden: false, + info: '', + level: 3, + line: '1. Ordered', + lineNumber: 30, + map: [ + 29, + 30, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '.', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '2', + level: 1, + line: '2. List', + lineNumber: 31, + map: [ + 30, + 35, + ], + markup: '.', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + line: '2. List', + lineNumber: 31, + map: [ + 30, + 31, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'List', + hidden: false, + info: '', + level: 0, + line: '2. List', + lineNumber: 31, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'List', + hidden: false, + info: '', + level: 3, + line: '2. List', + lineNumber: 31, + map: [ + 30, + 31, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: true, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + line: ' 1. Items', + lineNumber: 32, + map: [ + 31, + 35, + ], + markup: '.', + meta: null, + nesting: 1, + tag: 'ol', + type: 'ordered_list_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '1', + level: 3, + line: ' 1. Items', + lineNumber: 32, + map: [ + 31, + 35, + ], + markup: '.', + meta: null, + nesting: 1, + tag: 'li', + type: 'list_item_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + line: ' 1. Items', + lineNumber: 32, + map: [ + 31, + 33, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Items', + hidden: false, + info: '', + level: 0, + line: ' 1. Items', + lineNumber: 32, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + Token { + attrs: null, + block: false, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: ' 1. Items', + lineNumber: 32, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: 'br', + type: 'softbreak', + }, + Token { + attrs: null, + block: false, + children: null, + content: 'Indented', + hidden: false, + info: '', + level: 0, + line: ' Indented', + lineNumber: 33, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: `Items␊ + Indented`, + hidden: false, + info: '', + level: 5, + line: ' 1. Items', + lineNumber: 32, + map: [ + 31, + 33, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + line: ' Content', + lineNumber: 35, + map: [ + 34, + 35, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'p', + type: 'paragraph_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Content', + hidden: false, + info: '', + level: 0, + line: ' Content', + lineNumber: 35, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Content', + hidden: false, + info: '', + level: 5, + line: ' Content', + lineNumber: 35, + map: [ + 34, + 35, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 4, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'p', + type: 'paragraph_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + map: null, + markup: '.', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + map: null, + markup: '.', + meta: null, + nesting: -1, + tag: 'ol', + type: 'ordered_list_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '.', + meta: null, + nesting: -1, + tag: 'li', + type: 'list_item_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '.', + meta: null, + nesting: -1, + tag: 'ol', + type: 'ordered_list_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: `Fenced code block␊ + `, + hidden: false, + info: 'markdown options', + level: 0, + line: '```markdown options', + lineNumber: 37, + map: [ + 36, + 39, + ], + markup: '```', + meta: null, + nesting: 0, + tag: 'code', + type: 'fence', + }, + Token { + attrs: null, + block: true, + children: null, + content: `Indented code block␊ + `, + hidden: false, + info: '', + level: 0, + line: ' Indented code block', + lineNumber: 41, + map: [ + 40, + 41, + ], + markup: '', + meta: null, + nesting: 0, + tag: 'code', + type: 'code_block', + }, + Token { + attrs: null, + block: true, + children: null, + content: `

␊ + HTML block␊ +

␊ + `, + hidden: false, + info: '', + level: 0, + line: '

', + lineNumber: 43, + map: [ + 42, + 45, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'html_block', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 49, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'table', + type: 'table_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'thead', + type: 'thead_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'tr', + type: 'tr_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'th', + type: 'th_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Table', + hidden: false, + info: '', + level: 0, + line: '| Table | Heading |', + lineNumber: 47, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Table', + hidden: false, + info: '', + level: 4, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: -1, + tag: 'th', + type: 'th_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'th', + type: 'th_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Heading', + hidden: false, + info: '', + level: 0, + line: '| Table | Heading |', + lineNumber: 47, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Heading', + hidden: false, + info: '', + level: 4, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Heading |', + lineNumber: 47, + map: [ + 46, + 47, + ], + markup: '', + meta: null, + nesting: -1, + tag: 'th', + type: 'th_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'tr', + type: 'tr_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'thead', + type: 'thead_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'tbody', + type: 'tbody_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'tr', + type: 'tr_open', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'td', + type: 'td_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Table', + hidden: false, + info: '', + level: 0, + line: '| Table | Cell |', + lineNumber: 49, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Table', + hidden: false, + info: '', + level: 4, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: -1, + tag: 'td', + type: 'td_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 1, + tag: 'td', + type: 'td_open', + }, + Token { + attrs: null, + block: true, + children: [ + Token { + attrs: null, + block: false, + children: null, + content: 'Cell', + hidden: false, + info: '', + level: 0, + line: '| Table | Cell |', + lineNumber: 49, + map: null, + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'text', + }, + ], + content: 'Cell', + hidden: false, + info: '', + level: 4, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'inline', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 3, + line: '| Table | Cell |', + lineNumber: 49, + map: [ + 48, + 49, + ], + markup: '', + meta: null, + nesting: -1, + tag: 'td', + type: 'td_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 2, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'tr', + type: 'tr_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 1, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'tbody', + type: 'tbody_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: '', + hidden: false, + info: '', + level: 0, + map: null, + markup: '', + meta: null, + nesting: -1, + tag: 'table', + type: 'table_close', + }, + Token { + attrs: null, + block: true, + children: null, + content: `␊ + `, + hidden: false, + info: '', + level: 0, + line: '', + lineNumber: 51, + map: [ + 50, + 51, + ], + markup: '', + meta: null, + nesting: 0, + tag: '', + type: 'html_block', + }, + ] diff --git a/test/snapshots/markdownlint-test-custom-rules.js.snap b/test/snapshots/markdownlint-test-custom-rules.js.snap new file mode 100644 index 00000000..b0f17cd9 Binary files /dev/null and b/test/snapshots/markdownlint-test-custom-rules.js.snap differ