From 6202df940d289d04bf40d779dc21c508cdd3afb8 Mon Sep 17 00:00:00 2001
From: Fu Yuchen
Date: Wed, 17 Jul 2024 23:01:40 +0800
Subject: [PATCH] Make MD020 not to check HTML blocks.
---
demo/markdownlint-browser.js | 4 +-
lib/md020.js | 4 +-
test/ignore-html-block.md | 12 +-
.../markdownlint-test-scenarios.js.md | 50836 ++++++++--------
.../markdownlint-test-scenarios.js.snap | Bin 0 -> 250561 bytes
5 files changed, 25479 insertions(+), 25377 deletions(-)
create mode 100644 test/snapshots/markdownlint-test-scenarios.js.snap
diff --git a/demo/markdownlint-browser.js b/demo/markdownlint-browser.js
index 430f252e9..344a40cdc 100644
--- a/demo/markdownlint-browser.js
+++ b/demo/markdownlint-browser.js
@@ -4359,8 +4359,8 @@ module.exports = {
"tags": [ "headings", "atx_closed", "spaces" ],
"parser": "none",
"function": function MD020(params, onError) {
- forEachLine(lineMetadata(), (line, lineIndex, inCode) => {
- if (!inCode) {
+ forEachLine(lineMetadata(), (line, lineIndex, inCode, inFence, inTable, inItem, inBreak, inHTML) => {
+ if (!inCode && !inHTML) {
const match =
/^(#+)([ \t]*)([^#]*?[^#\\])([ \t]*)((?:\\#)?)(#+)(\s*)$/.exec(line);
if (match) {
diff --git a/lib/md020.js b/lib/md020.js
index 0207d9d69..b2db40cce 100644
--- a/lib/md020.js
+++ b/lib/md020.js
@@ -13,8 +13,8 @@ module.exports = {
"tags": [ "headings", "atx_closed", "spaces" ],
"parser": "none",
"function": function MD020(params, onError) {
- forEachLine(lineMetadata(), (line, lineIndex, inCode) => {
- if (!inCode) {
+ forEachLine(lineMetadata(), (line, lineIndex, inCode, inFence, inTable, inItem, inBreak, inHTML) => {
+ if (!inCode && !inHTML) {
const match =
/^(#+)([ \t]*)([^#]*?[^#\\])([ \t]*)((?:\\#)?)(#+)(\s*)$/.exec(line);
if (match) {
diff --git a/test/ignore-html-block.md b/test/ignore-html-block.md
index 5d3444fe3..4aca04d10 100644
--- a/test/ignore-html-block.md
+++ b/test/ignore-html-block.md
@@ -4,6 +4,12 @@
##Title2 {MD018}
-
+ {MD033}
+#foo
+
+
+##Title3 {MD020}##
+
+ {MD033}
+#foo#
+
diff --git a/test/snapshots/markdownlint-test-scenarios.js.md b/test/snapshots/markdownlint-test-scenarios.js.md
index 6f31182f0..0f1531ef2 100644
--- a/test/snapshots/markdownlint-test-scenarios.js.md
+++ b/test/snapshots/markdownlint-test-scenarios.js.md
@@ -85,453 +85,399 @@ Generated by [AVA](https://avajs.dev).
`,
}
-## MD001-MD010.md
+## alternate_top_level_heading.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Expected: h3; Actual: h4',
+ errorContext: 'Another one {MD025}',
+ errorDetail: null,
errorRange: null,
fixInfo: null,
lineNumber: 3,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
- ruleNames: [
- 'MD001',
- 'heading-increment',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: atx; Actual: atx_closed',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
+ ],
+ fixed: `## A level 2 top level heading␊
+ ␊
+ ## Another one {MD025}␊
+ ␊
+ ␊
+ `,
+ }
+
+## atx-heading-spacing-trailing-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: dash',
+ errorContext: '##Heading 1 {MD018}',
+ errorDetail: null,
errorRange: [
1,
- 2,
+ 3,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '*',
+ editColumn: 3,
+ insertText: ' ',
},
- lineNumber: 10,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 5,
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorContext: '## Heading 2 {MD019}',
+ errorDetail: null,
errorRange: [
- 1,
+ 4,
3,
],
- fixInfo: null,
- lineNumber: 8,
- ruleDescription: 'Inconsistent indentation for list items at the same level',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 4,
+ },
+ lineNumber: 7,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD005',
- 'list-indent',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 0',
+ errorContext: '##Heading 3 {MD020} ##',
+ errorDetail: null,
errorRange: [
1,
3,
],
fixInfo: {
- deleteCount: 0,
+ deleteCount: 24,
editColumn: 1,
- insertText: ' ',
+ insertText: '## Heading 3 {MD020} ##',
},
- lineNumber: 23,
- ruleDescription: 'Inconsistent indentation for list items at the same level',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
+ lineNumber: 9,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD005',
- 'list-indent',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: (3); Actual: (4)',
+ errorContext: '## Heading 4 {MD020}##',
+ errorDetail: null,
errorRange: [
- 1,
- 5,
+ 20,
+ 3,
],
fixInfo: {
- deleteCount: 1,
+ deleteCount: 24,
editColumn: 1,
- insertText: '',
+ insertText: '## Heading 4 {MD020} ##',
},
- lineNumber: 29,
- ruleDescription: 'Inconsistent indentation for list items at the same level',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
+ lineNumber: 11,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD005',
- 'list-indent',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorContext: '##Heading 5 {MD020}##',
+ errorDetail: null,
errorRange: [
1,
3,
],
fixInfo: {
- deleteCount: 1,
+ deleteCount: 23,
editColumn: 1,
- insertText: '',
+ insertText: '## Heading 5 {MD020} ##',
},
- lineNumber: 8,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 13,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorContext: '## Heading 5 {MD021} ##',
+ errorDetail: null,
errorRange: [
- 1,
+ 4,
3,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '',
+ deleteCount: 3,
+ editColumn: 4,
},
- lineNumber: 12,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 15,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorContext: '## Heading 6 {MD021} ##',
+ errorDetail: null,
errorRange: [
- 1,
- 3,
+ 22,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '',
+ deleteCount: 2,
+ editColumn: 22,
},
- lineNumber: 13,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 17,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorContext: '## Heading 7 {MD021} ##',
+ errorDetail: null,
errorRange: [
- 13,
- 1,
+ 4,
+ 3,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 13,
+ deleteCount: 3,
+ editColumn: 4,
},
- lineNumber: 15,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 19,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '## Heading 7 {MD021} ##',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 25,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 2,
+ editColumn: 25,
},
- lineNumber: 17,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 19,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
],
- fixed: `## One␊
+ fixed: `# atx-heading-spacing-trailing-spaces␊
␊
- #### Two {MD001}␊
+ ␊
␊
- ### Three {MD003} ###␊
+ ## Heading 1 {MD018} ␊
␊
- * Alpha␊
- * Bravo {MD005} {MD007}␊
+ ## Heading 2 {MD019} ␊
␊
- * Charlie {MD004}␊
+ ## Heading 3 {MD020} ##␊
␊
- * Delta {MD007}␊
- * Echo {MD007}␊
+ ## Heading 4 {MD020} ##␊
␊
- Text {MD009}␊
+ ## Heading 5 {MD020} ##␊
␊
- Text text {MD010}␊
+ ## Heading 5 {MD021} ## ␊
␊
- 1. One␊
- 2. Two␊
- 3. Three␊
- 4. Four␊
- 5. Five {MD005}␊
- 6. Six␊
- 7. Seven␊
- 8. Eight␊
- 9. Nine␊
- 10. Ten␊
- 11. Eleven {MD005}␊
- 12. Twelve␊
+ ## Heading 6 {MD021} ## ␊
␊
- ␊
+ ## Heading 7 {MD021} ## ␊
`,
}
-## MD011-MD021.md
+## atx_closed_heading_spacing.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: '(reversed)[link]',
+ errorContext: '#Heading 1 {MD020} #',
+ errorDetail: null,
errorRange: [
- 3,
- 16,
+ 1,
+ 2,
],
fixInfo: {
- deleteCount: 16,
- editColumn: 3,
- insertText: '[reversed](link)',
+ deleteCount: 20,
+ editColumn: 1,
+ insertText: '# Heading 1 {MD020} #',
},
- lineNumber: 5,
- ruleDescription: 'Reversed link syntax',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
+ lineNumber: 1,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD011',
- 'no-reversed-links',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: null,
- errorDetail: '(reversed)[link]',
+ errorContext: '## Heading 2 {MD020}##',
+ errorDetail: null,
errorRange: [
- 11,
- 16,
- ],
- fixInfo: {
- deleteCount: 16,
- editColumn: 11,
- insertText: '[reversed](link)',
- },
- lineNumber: 26,
- ruleDescription: 'Reversed link syntax',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
- ruleNames: [
- 'MD011',
- 'no-reversed-links',
+ 20,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
- errorRange: null,
fixInfo: {
- deleteCount: -1,
+ deleteCount: 22,
+ editColumn: 1,
+ insertText: '## Heading 2 {MD020} ##',
},
- lineNumber: 7,
- ruleDescription: 'Multiple consecutive blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
- ruleNames: [
- 'MD012',
- 'no-multiple-blanks',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 80; Actual: 99',
- errorRange: [
- 81,
- 19,
- ],
- fixInfo: null,
- lineNumber: 8,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
- ruleNames: [
- 'MD013',
- 'line-length',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 40; Actual: 62',
- errorRange: [
- 41,
- 22,
- ],
- fixInfo: null,
- lineNumber: 10,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ lineNumber: 3,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD013',
- 'line-length',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '$ command with no output {MD01...',
+ errorContext: '##Heading 3 {MD020}##',
errorDetail: null,
errorRange: [
- 5,
- 2,
+ 1,
+ 3,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
+ deleteCount: 21,
+ editColumn: 1,
+ insertText: '## Heading 3 {MD020} ##',
},
- lineNumber: 12,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 5,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '##No space A {MD018}',
+ errorContext: '## Heading 4 {MD021} ##',
errorDetail: null,
errorRange: [
+ 4,
1,
- 3,
],
fixInfo: {
- editColumn: 3,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 14,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
+ lineNumber: 7,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '## Multiple spaces B {MD019}',
+ errorContext: '## Heading 5 {MD021} ##',
errorDetail: null,
errorRange: [
- 4,
+ 22,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 4,
+ editColumn: 22,
},
- lineNumber: 16,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
+ lineNumber: 9,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '##No space C {MD020} ##',
+ errorContext: '## Heading 6 {MD021} ##',
errorDetail: null,
errorRange: [
+ 4,
1,
- 3,
],
fixInfo: {
- deleteCount: 23,
- editColumn: 1,
- insertText: '## No space C {MD020} ##',
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 18,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 11,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '## No space D {MD020}##',
+ errorContext: '## Heading 6 {MD021} ##',
errorDetail: null,
errorRange: [
- 21,
- 3,
+ 23,
+ 1,
],
fixInfo: {
- deleteCount: 23,
- editColumn: 1,
- insertText: '## No space D {MD020} ##',
+ deleteCount: 1,
+ editColumn: 23,
},
- lineNumber: 20,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 11,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '## Multiple spaces E {MD021} ...',
+ errorContext: '## Heading 7 {MD021} ##',
errorDetail: null,
errorRange: [
4,
- 1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
+ deleteCount: 2,
editColumn: 4,
},
- lineNumber: 22,
+ lineNumber: 13,
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
@@ -540,17 +486,17 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '... Multiple spaces F {MD021} ##',
+ errorContext: '## Heading 7 {MD021} ##',
errorDetail: null,
errorRange: [
- 30,
- 1,
+ 24,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 30,
+ deleteCount: 2,
+ editColumn: 24,
},
- lineNumber: 24,
+ lineNumber: 13,
ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
@@ -559,473 +505,501 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `# Top level heading␊
- ␊
- ␊
- ␊
- A [reversed](link) example. {MD011}␊
- ␊
- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789␊
+ fixed: `# Heading 1 {MD020} #␊
␊
- ## 123456789 123456789 123456789 123456789 123456789 123456789␊
+ ## Heading 2 {MD020} ##␊
␊
- command with no output {MD014}␊
+ ## Heading 3 {MD020} ##␊
␊
- ## No space A {MD018}␊
+ ## Heading 4 {MD021} ##␊
␊
- ## Multiple spaces B {MD019}␊
+ ## Heading 5 {MD021} ##␊
␊
- ## No space C {MD020} ##␊
+ ## Heading 6 {MD021} ##␊
␊
- ## No space D {MD020} ##␊
+ ## Heading 7 {MD021} ##␊
␊
- ## Multiple spaces E {MD021} ##␊
+ ## Heading 8\\#␊
␊
- ## Multiple spaces F {MD021} ##␊
+ ## Heading 9 \\#␊
␊
- *Another* [reversed](link) example. {MD011}␊
- ␊
- {MD012:7} {MD013:8} {MD013:10}␊
+ ## Heading 10 \\#␊
␊
␊
`,
}
-## MD022-MD030.md
+## atx_heading_spacing.md
> Snapshot 1
{
errors: [
{
- errorContext: '# Heading',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: '#Heading 1 {MD018}',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 2,
+ editColumn: 2,
+ insertText: ' ',
},
lineNumber: 1,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
{
- errorContext: ' # Heading',
+ errorContext: '## Heading 2 {MD019}',
errorDetail: null,
errorRange: [
- 1,
+ 4,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
+ editColumn: 4,
},
- lineNumber: 1,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
- ruleNames: [
- 'MD023',
- 'heading-start-left',
- ],
- },
- {
- errorContext: 'Heading',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 4,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 3,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: 'Heading',
+ errorContext: '## Heading 3 {MD019}',
errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 4,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
- ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Punctuation: \'.\'',
errorRange: [
- 27,
- 1,
+ 4,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 27,
+ deleteCount: 2,
+ editColumn: 4,
},
- lineNumber: 6,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ lineNumber: 5,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
+ ],
+ fixed: `# Heading 1 {MD018}␊
+ ␊
+ ## Heading 2 {MD019}␊
+ ␊
+ ## Heading 3 {MD019}␊
+ ␊
+ ␊
+ `,
+ }
+
+## backslashes-and-backticks.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ \\\\\`\\\\␊
+ \\\\\`\\\\␊
+ `,
+ }
+
+## bare-list-markers.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Bare List Markers␊
+ ␊
+ ## Ordered 1/1/1␊
+ ␊
+ 1.␊
+ 1.␊
+ 1.␊
+ ␊
+ ## Ordered 1/2/3␊
+ ␊
+ 1.␊
+ 2.␊
+ 3.␊
+ ␊
+ ## Unordered *␊
+ ␊
+ *␊
+ *␊
+ *␊
+ ␊
+ ## Unordered +␊
+ ␊
+ +␊
+ +␊
+ +␊
+ ␊
+ ## Unordered -␊
+ ␊
+ -␊
+ -␊
+ -␊
+ ␊
+ ␊
+ `,
+ }
+
+## bare-urls-in-html.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '> Multiple spaces {MD027}',
+ errorContext: 'https://example.com/fail',
errorDetail: null,
errorRange: [
- 3,
- 1,
+ 6,
+ 24,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 24,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 8,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 7,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '> > Multiple spaces, multiple...',
+ errorContext: 'https://example.com/fail',
errorDetail: null,
errorRange: [
- 5,
- 1,
+ 49,
+ 24,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ deleteCount: 24,
+ editColumn: 49,
+ insertText: '',
},
- lineNumber: 15,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 11,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '> > > Multiple spaces, multip...',
+ errorContext: 'https://example.com/fail',
errorDetail: null,
errorRange: [
- 7,
- 1,
+ 49,
+ 24,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 7,
+ deleteCount: 24,
+ editColumn: 49,
+ insertText: '',
},
- lineNumber: 17,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 13,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '> > > Multiple spaces, multip...',
+ errorContext: 'https://example.com/fail',
errorDetail: null,
errorRange: [
- 3,
- 1,
+ 41,
+ 24,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 24,
+ editColumn: 41,
+ insertText: '',
},
lineNumber: 19,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: null,
+ errorContext: 'https://example.com/fail',
errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3',
errorRange: [
- 1,
- 4,
+ 16,
+ 24,
],
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Ordered list item prefix',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md',
+ fixInfo: {
+ deleteCount: 24,
+ editColumn: 16,
+ insertText: '',
+ },
+ lineNumber: 21,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD029',
- 'ol-prefix',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
+ errorContext: 'https://example.com/fail',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 17,
+ 24,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 3,
- insertText: ' ',
+ deleteCount: 24,
+ editColumn: 17,
+ insertText: '',
},
- lineNumber: 13,
- ruleDescription: 'Spaces after list markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
+ lineNumber: 23,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD030',
- 'list-marker-space',
+ 'MD034',
+ 'no-bare-urls',
],
},
],
- fixed: `# Heading␊
+ fixed: `# Bare URLs in HTML␊
␊
- Text␊
+ ␊
+ https://example.com/pass␊
+
␊
␊
- # Heading␊
+ Text text. {MD034}␊
␊
- ## Another heading {MD026}␊
+ Text https://example.com/pass
text.␊
␊
- > Multiple spaces {MD027}␊
+ Text https://example.com/pass
text text. {MD034}␊
␊
- > Blank line above␊
+ Text https://example.com/pass
text text https://example.com/pass
text. {MD034}␊
␊
- 1. Alpha␊
- 3. Beta {MD029} {MD030}␊
+ Text text text https://example.com/pass text.␊
␊
- > > Multiple spaces, multiple blockquotes {MD027}␊
- > >␊
- > > > Multiple spaces, multiple blockquotes {MD027}␊
- > > >␊
- > > > Multiple spaces, multiple blockquotes {MD027}␊
+ Text text text https://example.com/pass text.␊
␊
- {MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}␊
+ Text text text text text. {MD034}␊
+ ␊
+ Text
text
text. {MD034}␊
+ ␊
+ Text
text
text. {MD034}␊
+ ␊
+ ␊
`,
}
-## MD030-warning-message.md
+## bare-urls.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
+ errorContext: 'https://example.com',
+ errorDetail: null,
errorRange: [
- 1,
- 3,
+ 15,
+ 19,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 2,
- insertText: ' ',
+ deleteCount: 19,
+ editColumn: 15,
+ insertText: '',
},
- lineNumber: 19,
- ruleDescription: 'Spaces after list markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
+ lineNumber: 3,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD030',
- 'list-marker-space',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
+ errorContext: 'https://example.com/',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 15,
+ 20,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 3,
- insertText: ' ',
+ deleteCount: 20,
+ editColumn: 15,
+ insertText: '',
},
- lineNumber: 21,
- ruleDescription: 'Spaces after list markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
+ lineNumber: 5,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD030',
- 'list-marker-space',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '-',
+ errorContext: 'https://example.com/?query=str...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 15,
+ 38,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 4,
+ deleteCount: 38,
+ editColumn: 15,
+ insertText: '',
},
- lineNumber: 3,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 7,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '1.',
+ errorContext: 'https://example.com/info.htm',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 15,
+ 28,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 7,
+ deleteCount: 28,
+ editColumn: 15,
+ insertText: '',
},
- lineNumber: 6,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 9,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD034',
+ 'no-bare-urls',
],
},
- ],
- fixed: `#␊
- ␊
- -␊
- ␊
- (bare list item marker {MD032:3})␊
- ␊
- 1.␊
- ␊
- (bare list item marker {MD032:6})␊
- ␊
- -a␊
- (not a list item)␊
- ␊
- 1.a␊
- (not a list item)␊
- ␊
- - a␊
- ␊
- 1. a␊
- ␊
- - a {MD030}␊
- ␊
- 1. a {MD030}␊
- `,
- }
-
-## MD031-MD040.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '```',
+ errorContext: 'https://example.com',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 7,
+ 19,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 4,
+ deleteCount: 19,
+ editColumn: 7,
+ insertText: '',
},
- lineNumber: 3,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 11,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '* List {MD032}',
+ errorContext: 'https://example.com',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 11,
+ 19,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 19,
+ editColumn: 11,
+ insertText: '',
},
- lineNumber: 4,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
- ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ lineNumber: 13,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ ruleNames: [
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '* List {MD032}',
+ errorContext: 'https://example.com',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 25,
+ 19,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 48,
+ deleteCount: 19,
+ editColumn: 25,
+ insertText: '',
},
- lineNumber: 47,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 29,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: null,
- errorDetail: 'Element: hr',
+ errorContext: 'https://example.com',
+ errorDetail: null,
errorRange: [
- 7,
- 5,
+ 26,
+ 19,
],
- fixInfo: null,
- lineNumber: 6,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 19,
+ editColumn: 26,
+ insertText: '',
+ },
+ lineNumber: 31,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
errorContext: 'https://example.com',
errorDetail: null,
errorRange: [
- 6,
+ 1,
19,
],
fixInfo: {
deleteCount: 19,
- editColumn: 6,
+ editColumn: 1,
insertText: '',
},
- lineNumber: 8,
+ lineNumber: 73,
ruleDescription: 'Bare URL used',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
@@ -1034,3636 +1008,3657 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: 'Emphasis {MD036}',
+ errorContext: 'https://example.com',
errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ errorRange: [
+ 1,
+ 19,
+ ],
+ fixInfo: {
+ deleteCount: 19,
+ editColumn: 1,
+ insertText: '',
+ },
+ lineNumber: 78,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '* i',
+ errorContext: 'https://example.com#heading-',
errorDetail: null,
errorRange: [
- 7,
- 3,
+ 27,
+ 28,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 8,
+ deleteCount: 28,
+ editColumn: 27,
+ insertText: '',
},
- lineNumber: 15,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 88,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: 'e *',
+ errorContext: 'user@example.com',
errorDetail: null,
errorRange: [
- 14,
- 3,
+ 40,
+ 16,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 15,
+ deleteCount: 16,
+ editColumn: 40,
+ insertText: '',
},
- lineNumber: 15,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 96,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '* s',
+ errorContext: 'https://example.com',
errorDetail: null,
errorRange: [
- 17,
- 3,
+ 59,
+ 19,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 18,
+ deleteCount: 19,
+ editColumn: 59,
+ insertText: '',
},
- lineNumber: 31,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 106,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD034',
+ 'no-bare-urls',
],
},
+ ],
+ fixed: `# Detailed Results Bare URLs␊
+ ␊
+ For more, see . {MD034}␊
+ ␊
+ For more, see . {MD034}␊
+ ␊
+ For more, see . {MD034}␊
+ ␊
+ For more, see . {MD034}␊
+ ␊
+ Visit , then refresh. {MD034}␊
+ ␊
+ The site () is down. {MD034}␊
+ ␊
+ ␊
+ ␊
+ Some documents use to link.␊
+ ␊
+ Or to link.␊
+ ␊
+ Or repeat the URL https://example.com.␊
+ ␊
+ Or https://example.com/info.htm.␊
+ ␊
+ This is allowed to avoid embedding angle brackets in HTML Text https://example.com.␊
+ ␊
+ As is https://example.com/info.htm text.␊
+ ␊
+
Another violation: . {MD034}
␊
+ ␊
+
Another violation: . {MD034}
␊
+ ␊
+ This is not a bare [link]( https://example.com ).␊
+ ␊
+ Nor is [link](https://example.com/path-with(parens)).␊
+ ␊
+ Or .␊
+ ␊
+ URLs in HTML attributes are not bare:␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ␊
+ URLs surrounded by HTML tags are not bare:␊
+ ␊
+ Not https://example.com
bare.␊
+ ␊
+ Not https://example.com
bare.␊
+ ␊
+ ␊
+ Not bare due to being in an HTML block:␊
+ https://example.com␊
+ https://example.com
␊
+
https://example.com
␊
+
␊
+ ␊
+ ␊
+ https://example.com␊
+
␊
+ ␊
+ ␊
+ https://example.com␊
+ ␊
+
␊
+ ␊
+ ␊
+ ␊
+ {MD034}␊
+
␊
+ ␊
+ ␊
+ ␊
+ {MD034}␊
+ ␊
+
␊
+ ␊
+ URLs in link and image text are not bare:␊
+ ␊
+ Text [link to https://example.com site](https://example.com) text.␊
+ ␊
+ Image ![for https://example.com site](https://example.com) text.␊
+ ␊
+ URLs may end with a dash: {MD034}␊
+ ␊
+ ... when explicit: ␊
+ ␊
+ ... when embedded: https://example.com#heading-
␊
+ ␊
+ Links with spaces inside angle brackets are okay: [blue jay]()␊
+ ␊
+ Email addresses are treated similarly: {MD034}␊
+ ␊
+ Angle brackets work the same for email: ␊
+ ␊
+ Unusual email addresses are handled: ␊
+ ␊
+ ---␊
+ ␊
+ [is-a-valid]: https://example.com␊
+ ␊
+ Links bind to the innermost [link that [is-a-valid] link]() {MD034}␊
+ ␊
+ But not if the [link [is-not-a-valid] link](https://example.com)␊
+ ␊
+ Escaping both inner square brackets avoids confusion:␊
+ [link \\[is-not-a-valid\\] link](https://example.com)␊
+ `,
+ }
+
+## blanks-around-fences-in-lists.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'e *',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 21,
- 3,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 22,
+ insertText: `␊
+ `,
+ lineNumber: 6,
},
- lineNumber: 32,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 5,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: 'e **',
+ errorContext: '2. ```text',
errorDetail: null,
- errorRange: [
- 22,
- 4,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 23,
+ insertText: `␊
+ `,
+ lineNumber: 6,
},
- lineNumber: 33,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 6,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '_ s',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 17,
- 3,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 18,
+ insertText: `␊
+ `,
+ lineNumber: 9,
},
- lineNumber: 34,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 8,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '__ s',
+ errorContext: '3. ```text',
errorDetail: null,
- errorRange: [
- 19,
- 4,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ insertText: `␊
+ `,
+ lineNumber: 9,
},
- lineNumber: 35,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 9,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: 'e __',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 25,
- 4,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 26,
+ insertText: `␊
+ `,
+ lineNumber: 18,
},
- lineNumber: 35,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 17,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '* i',
+ errorContext: '- ```text',
errorDetail: null,
- errorRange: [
- 7,
- 3,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 8,
+ insertText: `␊
+ `,
+ lineNumber: 18,
},
- lineNumber: 62,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 18,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: 'e *',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 10,
- 3,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 11,
+ insertText: `␊
+ `,
+ lineNumber: 21,
},
- lineNumber: 63,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 20,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '` inside`',
+ errorContext: '- ```text',
errorDetail: null,
- errorRange: [
- 7,
- 9,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 7,
- editColumn: 8,
- insertText: 'inside',
+ insertText: `␊
+ `,
+ lineNumber: 21,
},
- lineNumber: 17,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 21,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '`` inside``',
+ errorContext: '> ```',
errorDetail: null,
- errorRange: [
- 7,
- 11,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 7,
- editColumn: 9,
- insertText: 'inside',
+ insertText: `>␊
+ `,
+ lineNumber: 30,
},
- lineNumber: 24,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 29,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '` code`',
+ errorContext: '> 2. ```text',
errorDetail: null,
- errorRange: [
- 19,
- 7,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 5,
- editColumn: 20,
- insertText: 'code',
+ insertText: `>␊
+ `,
+ lineNumber: 30,
},
- lineNumber: 25,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 30,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '` elements`',
+ errorContext: '> ```',
errorDetail: null,
- errorRange: [
- 26,
- 11,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 9,
- editColumn: 27,
- insertText: 'elements',
+ insertText: `>␊
+ `,
+ lineNumber: 33,
},
- lineNumber: 26,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 32,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '`` code``',
+ errorContext: '> 3. ```text',
errorDetail: null,
- errorRange: [
- 21,
- 9,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 5,
- editColumn: 23,
- insertText: 'code',
+ insertText: `>␊
+ `,
+ lineNumber: 33,
},
- lineNumber: 27,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 33,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '`` ` embedded backtick``',
+ errorContext: '> ```',
errorDetail: null,
- errorRange: [
- 1,
- 25,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 21,
- editColumn: 3,
- insertText: ' ` embedded backtick',
+ insertText: `>␊
+ `,
+ lineNumber: 42,
},
- lineNumber: 28,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 41,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '``embedded backtick` ``',
+ errorContext: '> - ```text',
errorDetail: null,
- errorRange: [
- 1,
- 24,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 20,
- editColumn: 3,
- insertText: 'embedded backtick` ',
+ insertText: `>␊
+ `,
+ lineNumber: 42,
},
- lineNumber: 29,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 42,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '` code {MD038}',
+ errorContext: '> ```',
errorDetail: null,
- errorRange: [
- 6,
- 14,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 13,
- editColumn: 7,
- insertText: 'code {MD038}',
+ insertText: `>␊
+ `,
+ lineNumber: 45,
},
- lineNumber: 38,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 44,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: 'span `',
+ errorContext: '> - ```text',
errorDetail: null,
- errorRange: [
- 1,
- 7,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 6,
- editColumn: 1,
- insertText: 'span',
+ insertText: `>␊
+ `,
+ lineNumber: 45,
},
- lineNumber: 44,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 45,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: 'span code ```',
+ errorContext: '> > ```',
errorDetail: null,
- errorRange: [
- 1,
- 13,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 10,
- editColumn: 1,
- insertText: 'span code',
+ insertText: `> >␊
+ `,
+ lineNumber: 54,
},
lineNumber: 53,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '```` code {MD038}',
+ errorContext: '> > 2. ```text',
errorDetail: null,
- errorRange: [
- 11,
- 17,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 13,
- editColumn: 15,
- insertText: 'code {MD038}',
+ insertText: `> >␊
+ `,
+ lineNumber: 54,
},
- lineNumber: 55,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 54,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '[ inside ]',
+ errorContext: '> > ```',
errorDetail: null,
- errorRange: [
- 7,
- 10,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 8,
- editColumn: 8,
- insertText: 'inside',
+ insertText: `> >␊
+ `,
+ lineNumber: 57,
},
- lineNumber: 19,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 56,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '[ space]',
+ errorContext: '> > 3. ```text',
errorDetail: null,
- errorRange: [
- 6,
- 8,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 6,
- editColumn: 7,
- insertText: 'space',
+ insertText: `> >␊
+ `,
+ lineNumber: 57,
},
- lineNumber: 60,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 57,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '[space ]',
+ errorContext: '> > ```',
errorDetail: null,
- errorRange: [
- 26,
- 8,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 6,
- editColumn: 27,
- insertText: 'space',
+ insertText: `> >␊
+ `,
+ lineNumber: 66,
},
- lineNumber: 60,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 65,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '[ space ]',
+ errorContext: '> > - ```text',
errorDetail: null,
- errorRange: [
- 46,
- 9,
+ errorRange: null,
+ fixInfo: {
+ insertText: `> >␊
+ `,
+ lineNumber: 66,
+ },
+ lineNumber: 66,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
],
+ },
+ {
+ errorContext: '> > ```',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 7,
- editColumn: 47,
- insertText: 'space',
+ insertText: `> >␊
+ `,
+ lineNumber: 69,
},
- lineNumber: 60,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 68,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '```',
+ errorContext: '> > - ```text',
errorDetail: null,
errorRange: null,
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Fenced code blocks should have a language specified',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
+ fixInfo: {
+ insertText: `> >␊
+ `,
+ lineNumber: 69,
+ },
+ lineNumber: 69,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD040',
- 'fenced-code-language',
+ 'MD031',
+ 'blanks-around-fences',
],
},
],
- fixed: `\`\`\`js␊
- debugger;␊
- \`\`\`␊
+ fixed: `# Blanks Around Fences In Lists␊
␊
- * List {MD032}␊
+ 1. \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- Inline
HTML {MD033}␊
+ 2. \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- Bare link {MD034}␊
+ 3. \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- ---␊
- ***␊
+ Text␊
␊
- *Emphasis {MD036}*␊
+ - \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- Space *inside* emphasis {MD037}␊
+ - \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- Space \`inside\` code span {MD038}␊
+ - \`\`\`text␊
+ Text␊
+ \`\`\`␊
␊
- Space [inside](link) text {MD039}␊
+ Text␊
␊
- \`\`\`␊
- \`\`\`␊
+ > 1. \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
+ >␊
+ > 2. \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
+ >␊
+ > 3. \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
␊
- space \`\`inside\`\` code {MD038}␊
- space \`inside\` of \`code\` elements {MD038}␊
- \`space\` inside \`of\` code \`elements\` {MD038}␊
- space \`\`inside\`\` of \`\`code\`\` elements {MD038}␊
- \`\` \` embedded backtick\`\` {MD038}␊
- \`\`embedded backtick\` \`\` {MD038}␊
+ Text␊
␊
- some *space* in *some* emphasis {MD037}␊
- some *space* in *some* emphasis {MD037}␊
- some *space* in **some** emphasis {MD037}␊
- some _space_ in _some_ emphasis {MD037}␊
- some __space__ in __some__ emphasis {MD037}␊
+ > - \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
+ >␊
+ > - \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
+ >␊
+ > - \`\`\`text␊
+ > Text␊
+ > \`\`\`␊
␊
Text␊
- text \`code {MD038}␊
- span\` text␊
- text.␊
+ ␊
+ > > 1. \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
+ > >␊
+ > > 2. \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
+ > >␊
+ > > 3. \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
␊
Text␊
- text \`code␊
- span\` text {MD038}␊
- text.␊
␊
- * List {MD032}␊
+ > > - \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
+ > >␊
+ > > - \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
+ > >␊
+ > > - \`\`\`text␊
+ > > Text␊
+ > > \`\`\`␊
␊
- ---␊
+ {MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊
+ {MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊
+ {MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊
+ {MD031:66} {MD031:68} {MD031:69}␊
+ `,
+ }
+
+## blanks-around-headings--1-1.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: 'Elderberry {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 21,
+ },
+ lineNumber: 19,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
+ ],
+ },
+ ],
+ fixed: `# Blanks Around Headings␊
+ ␊
+ ## Apple␊
␊
Text␊
- text \`\`\`code␊
- span code␊
- span code\`\`\` text {MD038}␊
- text␊
- text text \`\`\`\`code {MD038}␊
- span code␊
- span\`\`\`\` text␊
- text.␊
+ ## Banana␊
␊
- Text [space](link) text [space](link) text [space](link) text. {MD039}␊
+ Text␊
␊
- Space *inside {MD037}␊
- multi-line* emphasis. {MD037}␊
+ ## Cherry␊
␊
- {MD031:3} {MD035:11} {MD040:21}␊
+ Text␊
+ ␊
+ ␊
+ ## Durian ##␊
+ ␊
+ Text␊
+ ␊
+ Elderberry {MD022}␊
+ ------------------␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ ## Fig␊
␊
␊
`,
}
-## MD041-MD050.md
+## blanks-around-headings-0-2.md
> Snapshot 1
{
errors: [
{
- errorContext: 'Not a heading {MD041}',
- errorDetail: null,
+ errorContext: '## Banana {MD022}',
+ errorDetail: 'Expected: 2; Actual: 1; Below',
errorRange: null,
- fixInfo: null,
- lineNumber: 1,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
- ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
- ],
- },
- {
- errorContext: '[empty]()',
- errorDetail: null,
- errorRange: [
- 4,
- 9,
- ],
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 9,
+ },
+ lineNumber: 8,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '[empty](#)',
- errorDetail: null,
- errorRange: [
- 4,
- 10,
- ],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ errorContext: 'Elderberry {MD022}',
+ errorDetail: 'Expected: 2; Actual: 0; Below',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ ␊
+ `,
+ lineNumber: 23,
+ },
+ lineNumber: 21,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Blanks Around Headings␊
+ ␊
+ ␊
+ ## Apple␊
+ ␊
+ ␊
+ Text␊
+ ## Banana {MD022}␊
+ ␊
+ ␊
+ Text␊
+ ## Cherry␊
+ ␊
+ ␊
+ Text␊
+ ## Durian ##␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ Elderberry {MD022}␊
+ ------------------␊
+ ␊
+ ␊
+ Text␊
+ ## Fig␊
+ ␊
+ ␊
+ `,
+ }
+
+## blanks-around-headings-1--1.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '[empty](<>)',
- errorDetail: null,
- errorRange: [
- 4,
- 11,
- ],
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ errorContext: '## Durian {MD022} ##',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 16,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Blanks Around Headings␊
+ ␊
+ ## Apple␊
+ Text␊
+ ␊
+ ## Banana␊
+ ␊
+ Text␊
+ ␊
+ ## Cherry␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ ␊
+ ## Durian {MD022} ##␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ ␊
+ Elderberry␊
+ ------------------␊
+ Text␊
+ ␊
+ ## Fig␊
+ ␊
+ ␊
+ `,
+ }
+
+## blanks-around-headings-3-0.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '[empty one]()',
- errorDetail: null,
- errorRange: [
- 25,
- 13,
- ],
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ errorContext: '## Durian {MD022} ##',
+ errorDetail: 'Expected: 3; Actual: 2; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 19,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '# Heading',
- errorDetail: null,
+ errorContext: 'Elderberry {MD022}',
+ errorDetail: 'Expected: 3; Actual: 1; Above',
errorRange: null,
- fixInfo: null,
- lineNumber: 64,
- ruleDescription: 'Required heading structure',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md',
+ fixInfo: {
+ insertText: `␊
+ ␊
+ `,
+ },
+ lineNumber: 22,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD043',
- 'required-headings',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Blanks Around Headings␊
+ ␊
+ ␊
+ ␊
+ ## Apple␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ## Banana␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ## Cherry␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ## Durian {MD022} ##␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ Elderberry {MD022}␊
+ ------------------␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ## Fig␊
+ ␊
+ ␊
+ `,
+ }
+
+## blanks-around-headings-arrays.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: markdownlint; Actual: MARKDOWNLINT',
- errorRange: [
- 29,
- 12,
- ],
+ errorContext: '# Apple - Top {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 12,
- editColumn: 29,
- insertText: 'markdownlint',
+ insertText: `␊
+ `,
},
- lineNumber: 9,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ lineNumber: 5,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: markdownlint; Actual: Markdownlint',
- errorRange: [
- 7,
- 12,
- ],
+ errorContext: '## Banana - Top {MD022}',
+ errorDetail: 'Expected: 2; Actual: 1; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 12,
- editColumn: 7,
- insertText: 'markdownlint',
+ insertText: `␊
+ `,
},
- lineNumber: 12,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ lineNumber: 18,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: markdownlint; Actual: MarkDownLint',
- errorRange: [
- 1,
- 12,
- ],
+ errorContext: '## Banana - Bottom {MD022}',
+ errorDetail: 'Expected: 2; Actual: 1; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 12,
- editColumn: 1,
- insertText: 'markdownlint',
+ insertText: `␊
+ `,
+ lineNumber: 25,
},
- lineNumber: 15,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ lineNumber: 24,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: null,
- errorRange: [
- 33,
- 14,
- ],
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Images should have alternate text (alt text)',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md',
+ errorContext: '### Cherry - Top {MD022}',
+ errorDetail: 'Expected: 3; Actual: 2; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 35,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD045',
- 'no-alt-text',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
+ errorContext: '### Cherry - Bottom {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
- fixInfo: null,
- lineNumber: 25,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 42,
+ },
+ lineNumber: 41,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: null,
- errorRange: [
- 41,
- 1,
- ],
+ errorContext: '#### Durian - Bottom {MD022} ####',
+ errorDetail: 'Expected: 3; Actual: 1; Below',
+ errorRange: null,
fixInfo: {
- editColumn: 42,
insertText: `␊
+ ␊
`,
+ lineNumber: 55,
},
- lineNumber: 64,
- ruleDescription: 'Files should end with a single newline character',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
+ lineNumber: 54,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD047',
- 'single-trailing-newline',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: '##### Elderberry - Top {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
- fixInfo: null,
- lineNumber: 27,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 61,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 21,
- 1,
- ],
+ errorContext: '###### Fig - Top {MD022} ######',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 31,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 74,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 26,
- 1,
- ],
+ errorContext: '###### Fig - Bottom {MD022} ######',
+ errorDetail: 'Expected: 4; Actual: 1; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 26,
- insertText: '*',
+ insertText: `␊
+ ␊
+ ␊
+ `,
+ lineNumber: 82,
},
- lineNumber: 31,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 81,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 49,
- 1,
- ],
+ errorContext: 'Grape - Top {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 49,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 31,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 89,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 56,
- 1,
- ],
+ errorContext: 'Honeycomb - Top {MD022}',
+ errorDetail: 'Expected: 2; Actual: 1; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 56,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 31,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 107,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 10,
- 1,
- ],
+ errorContext: 'Honeycomb - Bottom {MD022}',
+ errorDetail: 'Expected: 2; Actual: 1; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
- insertText: '*',
+ insertText: `␊
+ `,
+ lineNumber: 116,
},
- lineNumber: 36,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 114,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Blanks Around Headings (Arrays)␊
+ ␊
+ # Apple - Good␊
+ Text␊
+ ␊
+ # Apple - Top {MD022}␊
+ Text␊
+ ␊
+ # Apple - Bottom␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ## Banana - Good␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ## Banana - Top {MD022}␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ## Banana - Bottom {MD022}␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ### Cherry - Good␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ### Cherry - Top {MD022}␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ### Cherry - Bottom {MD022}␊
+ ␊
+ Text␊
+ #### Durian - Good ####␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ #### Durian - Top ####␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ #### Durian - Bottom {MD022} ####␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ##### Elderberry - Good␊
+ ␊
+ Text␊
+ ␊
+ ##### Elderberry - Top {MD022}␊
+ ␊
+ Text␊
+ ␊
+ ##### Elderberry - Bottom␊
+ Text␊
+ ␊
+ ###### Fig - Good ######␊
+ ␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ###### Fig - Top {MD022} ######␊
+ ␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ###### Fig - Bottom {MD022} ######␊
+ ␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ Grape - Good␊
+ ============␊
+ ␊
+ ---␊
+ ␊
+ Grape - Top {MD022}␊
+ ===================␊
+ ␊
+ Text␊
+ ␊
+ Grape - Bottom␊
+ ==============␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ Honeycomb - Good␊
+ ---------␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ Honeycomb - Top {MD022}␊
+ -----------------------␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ Honeycomb - Bottom {MD022}␊
+ --------------------------␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## blanks-around-headings.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 9,
- 1,
- ],
+ errorContext: '## Banana {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '*',
+ insertText: `␊
+ `,
+ lineNumber: 8,
},
- lineNumber: 37,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 7,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 14,
- 1,
- ],
+ errorContext: '## Durian {MD022} ##',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 14,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 13,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 21,
- 1,
- ],
+ errorContext: 'Elderberry {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 18,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 28,
- 1,
- ],
+ errorContext: 'Elderberry {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 28,
- insertText: '*',
+ insertText: `␊
+ `,
+ lineNumber: 20,
},
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 18,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Blanks Around Headings␊
+ ␊
+ ## Apple␊
+ ␊
+ Text␊
+ ␊
+ ## Banana {MD022}␊
+ ␊
+ Text␊
+ ␊
+ ## Cherry␊
+ ␊
+ Text␊
+ ␊
+ ## Durian {MD022} ##␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ ␊
+ Elderberry {MD022}␊
+ ------------------␊
+ ␊
+ Text␊
+ ␊
+ ## Fig␊
+ ␊
+ ␊
+ `,
+ }
+
+## blanks-around-tables.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe',
errorRange: [
- 40,
+ 1,
1,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 40,
- insertText: '*',
- },
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Table pipe style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD055',
+ 'table-pipe-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe',
errorRange: [
- 47,
+ 29,
1,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 47,
- insertText: '*',
- },
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Table pipe style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD055',
+ 'table-pipe-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
errorRange: [
- 54,
+ 29,
1,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 54,
- insertText: '*',
- },
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Table column count',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD056',
+ 'table-column-count',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 56,
- 1,
- ],
+ errorContext: '| Header | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 56,
- insertText: '*',
+ insertText: `␊
+ `,
},
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 8,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 68,
- 1,
- ],
+ errorContext: '| Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 68,
- insertText: '*',
+ insertText: `␊
+ `,
+ lineNumber: 20,
},
- lineNumber: 45,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 19,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 30,
- 2,
- ],
+ errorContext: '> | Header | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- insertText: '__',
+ insertText: `>␊
+ `,
},
- lineNumber: 33,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 25,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 36,
- 2,
- ],
+ errorContext: '> | Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 36,
- insertText: '__',
+ insertText: `>␊
+ `,
+ lineNumber: 28,
},
- lineNumber: 33,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 27,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 62,
- 2,
- ],
+ errorContext: '> | Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 62,
- insertText: '__',
+ insertText: `>␊
+ `,
+ lineNumber: 33,
},
- lineNumber: 33,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 32,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 70,
- 2,
- ],
+ errorContext: '| Header | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 70,
- insertText: '__',
+ insertText: `␊
+ `,
},
- lineNumber: 33,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 36,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 8,
- 2,
- ],
+ errorContext: '| Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 8,
- insertText: '__',
+ insertText: `␊
+ `,
+ lineNumber: 39,
},
- lineNumber: 41,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 38,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 9,
- 2,
- ],
+ errorContext: '| Header | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 9,
- insertText: '__',
+ insertText: `␊
+ `,
},
lineNumber: 42,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 14,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 14,
- insertText: '__',
- },
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 22,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 22,
- insertText: '__',
- },
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 30,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- insertText: '__',
- },
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 43,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 43,
- insertText: '__',
- },
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 51,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 51,
- insertText: '__',
- },
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 59,
- 2,
- ],
+ errorContext: '| Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 59,
- insertText: '__',
+ insertText: `␊
+ `,
+ lineNumber: 45,
},
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 44,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 62,
- 2,
- ],
+ errorContext: '| Header | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 62,
- insertText: '__',
+ insertText: `␊
+ `,
},
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 48,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 75,
- 2,
- ],
+ errorContext: '| Cell | {MD058} |',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 75,
- insertText: '__',
+ insertText: `␊
+ `,
+ lineNumber: 51,
},
- lineNumber: 47,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 50,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD058',
+ 'blanks-around-tables',
],
},
],
- fixed: `Not a heading {MD041}␊
+ fixed: `# Blanks Around Tables␊
␊
- An [empty]() link {MD042}␊
+ | Header | Header |␊
+ | ------ | ------ |␊
+ | Cell | Cell |␊
␊
- An [empty](#) link with fragment {MD042}␊
+ Text␊
␊
- An [empty](<>) link with angle brackets {MD042}␊
+ | Header | {MD058} |␊
+ | ------ | ------- |␊
+ | Cell | Cell |␊
␊
- This is a test file for the markdownlint package. {MD044}␊
+ | Header | Header |␊
+ | ------ | ------ |␊
+ | Cell | Cell |␊
+ Part of table {MD055} {MD056}␊
␊
- This is a paragraph␊
- about markdownlint {MD044}␊
- that capitalizes the␊
- name wrong twice:␊
- markdownlint. {MD044}␊
+ | Header | Header |␊
+ | ------ | ------- |␊
+ | Cell | {MD058} |␊
␊
- A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}␊
+ > Blockquote␊
␊
- An image without alternate text ![](image.jpg) {MD045}␊
+ Text␊
␊
- \`\`\`text␊
- Fenced code␊
- \`\`\`␊
+ > Text␊
+ >␊
+ > | Header | {MD058} |␊
+ > | ------ | ------- |␊
+ > | Cell | {MD058} |␊
+ >␊
+ Text␊
␊
- Indented code {MD046}␊
+ > | Header | Header |␊
+ > | ------ | ------- |␊
+ > | Cell | {MD058} |␊
+ >␊
+ > > Blockquote␊
␊
- ~~~text␊
- Fenced code {MD048:27}␊
- ~~~␊
+ - List Item␊
␊
- Mixed *emphasis* on *this* line *with* multiple *issues* {MD049}␊
+ | Header | {MD058} |␊
+ | ------ | ------- |␊
+ | Cell | {MD058} |␊
␊
- Mixed __strong emphasis__ on __this__ line __with__ multiple __issues__ {MD050}␊
+ - List Item␊
␊
- Inconsistent␊
- emphasis *text {MD049}␊
- spanning* many {MD049}␊
- lines␊
+ 1. List Item␊
␊
- Inconsistent␊
- strong __emphasis {MD050}␊
- spanning__ many {MD050}␊
- lines␊
+ | Header | {MD058} |␊
+ | ------ | ------- |␊
+ | Cell | {MD058} |␊
␊
- Inconsistent *double* text *interleaved* text *double* *interleaved* emphasis. {MD049}␊
+ 1. List Item␊
␊
- Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊
+ :::directive␊
␊
- ␊
+ | Header | {MD058} |␊
+ | ------ | ------- |␊
+ | Cell | {MD058} |␊
␊
- Missing newline character {MD043} {MD047}␊
+ :::␊
`,
}
-## MD051-MD060.md
+## blanks-around.md
> Snapshot 1
{
- errors: [
- {
- errorContext: '[link with a missing](#fragment)',
- errorDetail: null,
- errorRange: [
- 3,
- 32,
- ],
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
- ruleNames: [
- 'MD051',
- 'link-fragments',
- ],
- },
- {
- errorContext: '[link with a][undefined-label]',
- errorDetail: 'Missing link or image reference definition: "undefined-label"',
- errorRange: [
- 3,
- 30,
- ],
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Reference links and images should use a label that is defined',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md',
- ruleNames: [
- 'MD052',
- 'reference-links-images',
- ],
- },
- {
- errorContext: '[unused-label]: {MD053}',
- errorDetail: 'Unused link or image reference definition: "unused-label"',
- errorRange: [
- 1,
- 23,
- ],
- fixInfo: {
- deleteCount: -1,
- },
- lineNumber: 10,
- ruleDescription: 'Link and image reference definitions should be needed',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md',
- ruleNames: [
- 'MD053',
- 'link-image-reference-definitions',
- ],
- },
- ],
- fixed: `# detailed-results-MD051-MD060␊
+ errors: [],
+ fixed: `# Blanks Around␊
␊
- A [link with a missing](#fragment) {MD051}␊
+ ---␊
␊
- A [link with a][defined-label]␊
+ ## MD022/blanks-around-headings␊
␊
- A [link with a][undefined-label] {MD052}␊
+ >␊
+ ### Alpha␊
+ > >␊
␊
- [defined-label]: https://example.com␊
+ ␊
+ ### Beta␊
+ ␊
+ ␊
+ > Text␊
+ >␊
+ > ### Gamma␊
+ > >␊
+ > > Text␊
+ ␊
+ ---␊
+ ␊
+ ## MD031/blanks-around-fences␊
+ ␊
+ > >␊
+ \`\`\`js␊
+ console.log();␊
+ \`\`\`␊
+ >␊
+ ␊
+ ␊
+ \`\`\`js␊
+ console.log();␊
+ \`\`\`␊
+ ␊
+ ␊
+ > Text␊
+ >␊
+ > \`\`\`js␊
+ > console.log();␊
+ > \`\`\`␊
+ > >␊
+ > >Text␊
+ ␊
+ ---␊
+ ␊
+ ## MD032/blanks-around-lists␊
+ ␊
+ >␊
+ - List item␊
+ >>␊
+ ␊
+ ␊
+ - List item␊
+ ␊
+ ␊
+ > Text␊
+ >␊
+ > - List item␊
+ >>␊
+ >> Text␊
`,
}
-## alternate_top_level_heading.md
+## blockquote-headings.md
> Snapshot 1
{
errors: [
{
- errorContext: 'Another one {MD025}',
- errorDetail: null,
+ errorContext: '> # Quoted heading in list {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 23,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD022',
+ 'blanks-around-headings',
],
},
- ],
- fixed: `## A level 2 top level heading␊
- ␊
- ## Another one {MD025}␊
- ␊
- ␊
- `,
- }
-
-## atx-heading-spacing-trailing-spaces.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '##Heading 1 {MD018}',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
+ errorContext: '> # Quoted heading in list {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- editColumn: 3,
- insertText: ' ',
+ insertText: `␊
+ `,
+ lineNumber: 24,
},
- lineNumber: 5,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
+ lineNumber: 23,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 2 {MD019}',
- errorDetail: null,
- errorRange: [
- 4,
- 3,
- ],
+ errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 3,
- editColumn: 4,
+ insertText: `␊
+ `,
},
- lineNumber: 7,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
+ lineNumber: 26,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '##Heading 3 {MD020} ##',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
+ errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 24,
- editColumn: 1,
- insertText: '## Heading 3 {MD020} ##',
+ insertText: `␊
+ `,
+ lineNumber: 27,
},
- lineNumber: 9,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 26,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 4 {MD020}##',
- errorDetail: null,
- errorRange: [
- 20,
- 3,
- ],
+ errorContext: '> ## Quoted sub-heading in list {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 24,
- editColumn: 1,
- insertText: '## Heading 4 {MD020} ##',
+ insertText: `␊
+ `,
},
- lineNumber: 11,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 29,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '##Heading 5 {MD020}##',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
+ errorContext: '> ## Quoted sub-heading in list {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 23,
- editColumn: 1,
- insertText: '## Heading 5 {MD020} ##',
+ insertText: `␊
+ `,
+ lineNumber: 30,
},
- lineNumber: 13,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 29,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 5 {MD021} ##',
- errorDetail: null,
- errorRange: [
- 4,
- 3,
- ],
+ errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 3,
- editColumn: 4,
+ insertText: `␊
+ `,
},
- lineNumber: 15,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 33,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 6 {MD021} ##',
- errorDetail: null,
- errorRange: [
- 22,
- 2,
- ],
+ errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 22,
+ insertText: `␊
+ `,
+ lineNumber: 34,
},
- lineNumber: 17,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 33,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 7 {MD021} ##',
- errorDetail: null,
- errorRange: [
- 4,
- 3,
+ errorContext: '> ## Heading One {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
+ fixInfo: {
+ insertText: `>␊
+ `,
+ lineNumber: 41,
+ },
+ lineNumber: 40,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
],
+ },
+ {
+ errorContext: '> ## Heading Two {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 3,
- editColumn: 4,
+ insertText: `>␊
+ `,
},
- lineNumber: 19,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 46,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 7 {MD021} ##',
- errorDetail: null,
- errorRange: [
- 25,
- 2,
+ errorContext: '> ## Heading Three {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `>␊
+ `,
+ },
+ lineNumber: 53,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
],
+ },
+ {
+ errorContext: '> ## Heading Three {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 25,
+ insertText: `>␊
+ `,
+ lineNumber: 54,
},
- lineNumber: 19,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 53,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
- ],
- fixed: `# atx-heading-spacing-trailing-spaces␊
- ␊
- ␊
- ␊
- ## Heading 1 {MD018} ␊
- ␊
- ## Heading 2 {MD019} ␊
- ␊
- ## Heading 3 {MD020} ##␊
- ␊
- ## Heading 4 {MD020} ##␊
- ␊
- ## Heading 5 {MD020} ##␊
- ␊
- ## Heading 5 {MD021} ## ␊
- ␊
- ## Heading 6 {MD021} ## ␊
- ␊
- ## Heading 7 {MD021} ## ␊
- `,
- }
-
-## atx_closed_heading_spacing.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '#Heading 1 {MD020} #',
- errorDetail: null,
- errorRange: [
- 1,
- 2,
+ errorContext: '> > ### Heading Four {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `> >␊
+ `,
+ },
+ lineNumber: 59,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
],
+ },
+ {
+ errorContext: '> > ### Heading Four {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 20,
- editColumn: 1,
- insertText: '# Heading 1 {MD020} #',
+ insertText: `> >␊
+ `,
+ lineNumber: 60,
},
- lineNumber: 1,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 59,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 2 {MD020}##',
- errorDetail: null,
- errorRange: [
- 20,
- 3,
+ errorContext: '> > ### Heading Five {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `>␊
+ `,
+ },
+ lineNumber: 65,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
],
+ },
+ {
+ errorContext: '> > ### Heading Five {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 22,
- editColumn: 1,
- insertText: '## Heading 2 {MD020} ##',
+ insertText: `> >␊
+ `,
+ lineNumber: 66,
},
- lineNumber: 3,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 65,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '##Heading 3 {MD020}##',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
+ errorContext: '> > ### Heading Six {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `> >␊
+ `,
+ },
+ lineNumber: 71,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
],
+ },
+ {
+ errorContext: '> > ### Heading Six {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
fixInfo: {
- deleteCount: 21,
- editColumn: 1,
- insertText: '## Heading 3 {MD020} ##',
+ insertText: `>␊
+ `,
+ lineNumber: 72,
},
- lineNumber: 5,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 71,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '## Heading 4 {MD021} ##',
+ errorContext: '> ## Quoted indented sub-head...',
errorDetail: null,
errorRange: [
- 4,
+ 3,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 4,
+ editColumn: 3,
},
- lineNumber: 7,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 17,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD023',
+ 'heading-start-left',
],
},
{
- errorContext: '## Heading 5 {MD021} ##',
+ errorContext: ' > ## Quoted indented sub-he...',
errorDetail: null,
errorRange: [
- 22,
+ 5,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 22,
+ editColumn: 5,
},
- lineNumber: 9,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 33,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD023',
+ 'heading-start-left',
],
},
{
- errorContext: '## Heading 6 {MD021} ##',
+ errorContext: 'Quoted heading {MD025}',
errorDetail: null,
- errorRange: [
- 4,
- 1,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 4,
- },
- lineNumber: 11,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ },
+ {
+ errorContext: 'Double-quoted heading {MD025}',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
{
- errorContext: '## Heading 6 {MD021} ##',
+ errorContext: 'Quoted heading in list {MD022}...',
errorDetail: null,
- errorRange: [
- 23,
- 1,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 23,
- },
- lineNumber: 11,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ },
+ {
+ errorContext: 'Double-quoted heading in list ...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 26,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
{
- errorContext: '## Heading 7 {MD021} ##',
+ errorContext: '> ## Quoted indented sub-head...',
errorDetail: null,
errorRange: [
- 4,
- 2,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 4,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 13,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 17,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '## Heading 7 {MD021} ##',
+ errorContext: ' > ## Quoted indented sub-he...',
errorDetail: null,
errorRange: [
- 24,
- 2,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 24,
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 13,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 33,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
],
- fixed: `# Heading 1 {MD020} #␊
+ fixed: `# Heading␊
␊
- ## Heading 2 {MD020} ##␊
+ ## Sub-heading␊
␊
- ## Heading 3 {MD020} ##␊
+ > # Quoted heading {MD025}␊
␊
- ## Heading 4 {MD021} ##␊
+ Text␊
␊
- ## Heading 5 {MD021} ##␊
+ > > # Double-quoted heading {MD025}␊
␊
- ## Heading 6 {MD021} ##␊
+ Text␊
␊
- ## Heading 7 {MD021} ##␊
+ > ## Quoted sub-heading␊
␊
- ## Heading 8\\#␊
+ Text␊
␊
- ## Heading 9 \\#␊
+ > ## Quoted indented sub-heading {MD023} {MD027}␊
␊
- ## Heading 10 \\#␊
+ Text␊
␊
- ␊
- `,
- }
-
-## atx_heading_spacing.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: '#Heading 1 {MD018}',
- errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
- fixInfo: {
- editColumn: 2,
- insertText: ' ',
- },
- lineNumber: 1,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
- ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
- ],
- },
- {
- errorContext: '## Heading 2 {MD019}',
- errorDetail: null,
- errorRange: [
- 4,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 4,
- },
- lineNumber: 3,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- {
- errorContext: '## Heading 3 {MD019}',
- errorDetail: null,
- errorRange: [
- 4,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 4,
- },
- lineNumber: 5,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- ],
- fixed: `# Heading 1 {MD018}␊
+ - Item␊
+ item␊
␊
- ## Heading 2 {MD019}␊
+ > # Quoted heading in list {MD022} {MD025}␊
␊
- ## Heading 3 {MD019}␊
+ - Item␊
+ item␊
␊
- ␊
- `,
- }
-
-## backslashes-and-backticks.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
+ > > # Double-quoted heading in list {MD022} {MD025}␊
␊
- \\\\\`\\\\␊
- \\\\\`\\\\␊
- `,
- }
-
-## bare-list-markers.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Bare List Markers␊
+ - Item␊
+ item␊
␊
- ## Ordered 1/1/1␊
+ > ## Quoted sub-heading in list {MD022}␊
␊
- 1.␊
- 1.␊
- 1.␊
+ - Item␊
+ - Item␊
+ item␊
␊
- ## Ordered 1/2/3␊
+ > ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}␊
␊
- 1.␊
- 2.␊
- 3.␊
+ - Item␊
␊
- ## Unordered *␊
+ Text␊
␊
- *␊
- *␊
- *␊
+ > Text␊
+ >␊
+ > ## Heading One {MD022}␊
+ >␊
+ > Text␊
␊
- ## Unordered +␊
+ Text␊
␊
- +␊
- +␊
- +␊
+ > Text␊
+ >␊
+ > ## Heading Two {MD022}␊
+ >␊
+ > Text␊
␊
- ## Unordered -␊
+ Text␊
␊
- -␊
- -␊
- -␊
+ > Text␊
+ >␊
+ > ## Heading Three {MD022}␊
+ >␊
+ > Text␊
␊
- ␊
+ Text␊
+ ␊
+ > > Text␊
+ > >␊
+ > > ### Heading Four {MD022}␊
+ > >␊
+ > > Text␊
+ ␊
+ Text␊
+ ␊
+ > Text␊
+ >␊
+ > > ### Heading Five {MD022}␊
+ > >␊
+ > > Text␊
+ ␊
+ Text␊
+ ␊
+ > > Text␊
+ > >␊
+ > > ### Heading Six {MD022}␊
+ >␊
+ > Text␊
+ ␊
+ Text␊
`,
}
-## bare-urls-in-html.md
+## blockquote-spaces-nested.md
> Snapshot 1
{
errors: [
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> A {MD027}',
errorDetail: null,
errorRange: [
- 6,
- 24,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 6,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 7,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 3,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> > B {MD027}',
errorDetail: null,
errorRange: [
- 49,
- 24,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 49,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 11,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 5,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> C {MD027}',
errorDetail: null,
errorRange: [
- 49,
- 24,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 49,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 13,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 7,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> A {MD027}',
errorDetail: null,
errorRange: [
- 41,
- 24,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 41,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 19,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 11,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> > B {MD027}',
errorDetail: null,
errorRange: [
- 16,
- 24,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 16,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 21,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 13,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/fail',
+ errorContext: '> > > C {MD027}',
errorDetail: null,
errorRange: [
- 17,
- 24,
+ 7,
+ 1,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 17,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 7,
},
- lineNumber: 23,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 15,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
- ],
- fixed: `# Bare URLs in HTML␊
- ␊
- ␊
- https://example.com/pass␊
-
␊
- ␊
- Text text. {MD034}␊
- ␊
- Text https://example.com/pass
text.␊
- ␊
- Text https://example.com/pass
text text. {MD034}␊
- ␊
- Text https://example.com/pass
text text https://example.com/pass
text. {MD034}␊
- ␊
- Text text text https://example.com/pass text.␊
- ␊
- Text text text https://example.com/pass text.␊
- ␊
- Text text text text text. {MD034}␊
- ␊
- Text
text
text. {MD034}␊
- ␊
- Text
text
text. {MD034}␊
- ␊
- ␊
- `,
- }
-
-## bare-urls.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'https://example.com',
+ errorContext: '> > D {MD027}',
errorDetail: null,
errorRange: [
- 15,
- 19,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 15,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 3,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 17,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/',
+ errorContext: '> E {MD027}',
errorDetail: null,
errorRange: [
- 15,
- 20,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 20,
- editColumn: 15,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 5,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 19,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/?query=str...',
+ errorContext: '> A {MD027}',
errorDetail: null,
errorRange: [
- 15,
- 38,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 38,
- editColumn: 15,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 7,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 23,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com/info.htm',
+ errorContext: '>> B {MD027}',
errorDetail: null,
errorRange: [
- 15,
- 28,
+ 4,
+ 1,
],
fixInfo: {
- deleteCount: 28,
- editColumn: 15,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 9,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 25,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: '>>> C {MD027}',
errorDetail: null,
errorRange: [
- 7,
- 19,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 7,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 11,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 27,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: '>> D {MD027}',
errorDetail: null,
errorRange: [
- 11,
- 19,
+ 4,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 11,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 13,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 29,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: '> E {MD027}',
errorDetail: null,
errorRange: [
- 25,
- 19,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 25,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 29,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 31,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: '> > Text {MD027}',
errorDetail: null,
errorRange: [
- 26,
- 19,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 26,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 31,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 35,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: ' > > Text {MD027}',
errorDetail: null,
errorRange: [
+ 6,
1,
- 19,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 6,
},
- lineNumber: 73,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
- ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ lineNumber: 39,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: ' > > Text {MD027}',
errorDetail: null,
errorRange: [
+ 7,
1,
- 19,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 7,
},
- lineNumber: 78,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 43,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com#heading-',
+ errorContext: '> > Text {MD027}',
errorDetail: null,
errorRange: [
- 27,
- 28,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 28,
- editColumn: 27,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 88,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 47,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'user@example.com',
+ errorContext: '> > > Text {MD027}',
errorDetail: null,
errorRange: [
- 40,
- 16,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 16,
- editColumn: 40,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 96,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 51,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: 'https://example.com',
+ errorContext: '> > > > Text {MD027}',
errorDetail: null,
errorRange: [
- 59,
- 19,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 19,
- editColumn: 59,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 106,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 55,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD027',
+ 'no-multiple-space-blockquote',
+ ],
+ },
+ {
+ errorContext: '>> >> Text {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 4,
+ },
+ lineNumber: 59,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
+ ],
+ },
+ {
+ errorContext: ' > > Text {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 6,
+ },
+ lineNumber: 63,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
+ ],
+ },
+ {
+ errorContext: ' > > Text {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 7,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 7,
+ },
+ lineNumber: 67,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
+ ],
+ },
+ {
+ errorContext: ' > > Text {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 8,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 8,
+ },
+ lineNumber: 71,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
+ ],
+ },
+ {
+ errorContext: ' > > Text {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 4,
+ },
+ lineNumber: 75,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleNames: [
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
],
- fixed: `# Detailed Results Bare URLs␊
- ␊
- For more, see . {MD034}␊
- ␊
- For more, see . {MD034}␊
- ␊
- For more, see . {MD034}␊
- ␊
- For more, see . {MD034}␊
- ␊
- Visit , then refresh. {MD034}␊
- ␊
- The site () is down. {MD034}␊
- ␊
- ␊
- ␊
- Some documents use to link.␊
- ␊
- Or to link.␊
- ␊
- Or repeat the URL https://example.com.␊
- ␊
- Or https://example.com/info.htm.␊
- ␊
- This is allowed to avoid embedding angle brackets in HTML Text https://example.com.␊
- ␊
- As is https://example.com/info.htm text.␊
- ␊
-
Another violation: . {MD034}
␊
- ␊
-
Another violation: . {MD034}
␊
- ␊
- This is not a bare [link]( https://example.com ).␊
- ␊
- Nor is [link](https://example.com/path-with(parens)).␊
- ␊
- Or .␊
- ␊
- URLs in HTML attributes are not bare:␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- ␊
+ fixed: `# Nested blockquote␊
␊
- URLs surrounded by HTML tags are not bare:␊
+ > A {MD027}␊
+ >␊
+ > > B {MD027}␊
+ >␊
+ > C {MD027}␊
␊
- Not https://example.com
bare.␊
+ Text␊
␊
- Not https://example.com
bare.␊
+ > A {MD027}␊
+ >␊
+ > > B {MD027}␊
+ > >␊
+ > > > C {MD027}␊
+ > >␊
+ > > D {MD027}␊
+ >␊
+ > E {MD027}␊
␊
- ␊
- Not bare due to being in an HTML block:␊
- https://example.com␊
- https://example.com
␊
-
https://example.com
␊
- ␊
+ Text␊
␊
- ␊
- https://example.com␊
-
␊
+ > A {MD027}␊
+ >␊
+ >> B {MD027}␊
+ >>␊
+ >>> C {MD027}␊
+ >>␊
+ >> D {MD027}␊
+ >␊
+ > E {MD027}␊
␊
- ␊
- https://example.com␊
+ Text␊
␊
-
␊
+ > > Text {MD027}␊
␊
- ␊
+ Text␊
␊
- {MD034}␊
-
␊
+ > > Text {MD027}␊
␊
- ␊
+ Text␊
␊
- {MD034}␊
+ > > Text {MD027}␊
␊
-
␊
+ Text␊
␊
- URLs in link and image text are not bare:␊
+ > > Text {MD027}␊
␊
- Text [link to https://example.com site](https://example.com) text.␊
+ Text␊
␊
- Image ![for https://example.com site](https://example.com) text.␊
+ > > > Text {MD027}␊
␊
- URLs may end with a dash: {MD034}␊
+ Text␊
␊
- ... when explicit: ␊
+ > > > > Text {MD027}␊
␊
- ... when embedded: https://example.com#heading-
␊
+ Text␊
␊
- Links with spaces inside angle brackets are okay: [blue jay]()␊
+ >> >> Text {MD027}␊
␊
- Email addresses are treated similarly: {MD034}␊
+ Text␊
␊
- Angle brackets work the same for email: ␊
+ > > Text {MD027}␊
␊
- Unusual email addresses are handled: ␊
+ Text␊
␊
- ---␊
+ > > Text {MD027}␊
␊
- [is-a-valid]: https://example.com␊
+ Text␊
␊
- Links bind to the innermost [link that [is-a-valid] link]() {MD034}␊
+ > > Text {MD027}␊
␊
- But not if the [link [is-not-a-valid] link](https://example.com)␊
+ Text␊
␊
- Escaping both inner square brackets avoids confusion:␊
- [link \\[is-not-a-valid\\] link](https://example.com)␊
+ > > Text {MD027}␊
`,
}
-## blanks-around-fences-in-lists.md
+## blockquote_blank_lines.md
> Snapshot 1
{
errors: [
{
- errorContext: '```',
- errorDetail: null,
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorRange: [
+ 1,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 6,
+ deleteCount: 1,
+ editColumn: 1,
},
- lineNumber: 5,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 12,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '2. ```text',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 1; Actual: 2',
errorRange: null,
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 6,
+ deleteCount: -1,
},
- lineNumber: 6,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 10,
+ ruleDescription: 'Multiple consecutive blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD012',
+ 'no-multiple-blanks',
],
},
{
- errorContext: '```',
+ errorContext: null,
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 9,
- },
- lineNumber: 8,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
{
- errorContext: '3. ```text',
+ errorContext: null,
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 9,
- },
+ fixInfo: null,
lineNumber: 9,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
{
- errorContext: '```',
+ errorContext: null,
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 18,
- },
- lineNumber: 17,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 10,
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
{
- errorContext: '- ```text',
+ errorContext: null,
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 18,
- },
- lineNumber: 18,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 12,
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
{
- errorContext: '```',
+ errorContext: null,
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 21,
- },
- lineNumber: 20,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
+ ],
+ fixed: `# blockquote_blank_lines␊
+ ␊
+ Some text␊
+ ␊
+ > a quote␊
+ > same quote␊
+ ␊
+ > blank line above me␊
+ ␊
+ > two blank lines above me␊
+ ␊
+ > space above me␊
+ ␊
+ * List with embedded blockquote␊
+ ␊
+ > Test␊
+ > Test␊
+ ␊
+ > Test␊
+ ␊
+ * Item 2␊
+ ␊
+ > Test. The blank line below should _not_ trigger MD028 as one blockquote is␊
+ > inside the list, and the other is outside it.␊
+ ␊
+ > Test␊
+ ␊
+ Expected errors:␊
+ ␊
+ {MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19}␊
+ {MD009:12} (trailing space is intentional)␊
+ {MD012:10} (multiple blank lines are intentional)␊
+ `,
+ }
+
+## blockquote_spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '- ```text',
+ errorContext: '> Foo {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 21,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 21,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 6,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
- ],
- },
- {
- errorContext: '> ```',
- errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 30,
- },
- lineNumber: 29,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> 2. ```text',
+ errorContext: '> Bar {MD027}',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 30,
- },
- lineNumber: 30,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 3,
+ 1,
],
- },
- {
- errorContext: '> ```',
- errorDetail: null,
- errorRange: null,
fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 33,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 32,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 7,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> 3. ```text',
+ errorContext: '> *foo* {MD027}',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 33,
- },
- lineNumber: 33,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 3,
+ 1,
],
- },
- {
- errorContext: '> ```',
- errorDetail: null,
- errorRange: null,
fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 42,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 41,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 14,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> - ```text',
+ errorContext: '> **bar** {MD027}',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 42,
- },
- lineNumber: 42,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 3,
+ 1,
],
- },
- {
- errorContext: '> ```',
- errorDetail: null,
- errorRange: null,
fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 45,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 44,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 15,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> - ```text',
+ errorContext: '> "Baz" {MD027}',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 45,
- },
- lineNumber: 45,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 3,
+ 2,
],
- },
- {
- errorContext: '> > ```',
- errorDetail: null,
- errorRange: null,
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 54,
+ deleteCount: 2,
+ editColumn: 3,
},
- lineNumber: 53,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 16,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > 2. ```text',
+ errorContext: '> `qux` {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 2,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 54,
+ deleteCount: 2,
+ editColumn: 3,
},
- lineNumber: 54,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 17,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > ```',
+ errorContext: '> Foo {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 57,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 56,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 27,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > 3. ```text',
+ errorContext: '> Bar {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 57,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 57,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 28,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > ```',
+ errorContext: ' > Text {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 66,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 65,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 33,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > - ```text',
+ errorContext: ' > Text {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 5,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 66,
+ deleteCount: 1,
+ editColumn: 5,
},
- lineNumber: 66,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 37,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > ```',
+ errorContext: ' > Text {MD027}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 6,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 69,
+ deleteCount: 1,
+ editColumn: 6,
},
- lineNumber: 68,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 41,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
{
- errorContext: '> > - ```text',
+ errorContext: '> ',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 69,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 69,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 47,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
],
- fixed: `# Blanks Around Fences In Lists␊
+ fixed: `# blockquote_spaces␊
␊
- 1. \`\`\`text␊
- Text␊
- \`\`\`␊
+ Some text␊
␊
- 2. \`\`\`text␊
- Text␊
- \`\`\`␊
+ > Hello world␊
+ > Foo {MD027}␊
+ > Bar {MD027}␊
␊
- 3. \`\`\`text␊
- Text␊
- \`\`\`␊
+ This tests other things embedded in the blockquote:␊
␊
- Text␊
+ - foo␊
␊
- - \`\`\`text␊
- Text␊
- \`\`\`␊
+ > *Hello world*␊
+ > *foo* {MD027}␊
+ > **bar** {MD027}␊
+ > "Baz" {MD027}␊
+ > \`qux\` {MD027}␊
+ > *foo* more text␊
+ > **bar** more text␊
+ > 'baz' more text␊
+ > \`qux\` more text␊
+ >␊
+ > - foo␊
␊
- - \`\`\`text␊
- Text␊
- \`\`\`␊
+ Test the first line being indented too much:␊
␊
- - \`\`\`text␊
- Text␊
- \`\`\`␊
+ > Foo {MD027}␊
+ > Bar {MD027}␊
+ > Baz␊
␊
- Text␊
+ Test spaces before the blockquote:␊
␊
- > 1. \`\`\`text␊
- > Text␊
- > \`\`\`␊
- >␊
- > 2. \`\`\`text␊
- > Text␊
- > \`\`\`␊
- >␊
- > 3. \`\`\`text␊
- > Text␊
- > \`\`\`␊
+ > Text {MD027}␊
␊
Text␊
␊
- > - \`\`\`text␊
- > Text␊
- > \`\`\`␊
- >␊
- > - \`\`\`text␊
- > Text␊
- > \`\`\`␊
- >␊
- > - \`\`\`text␊
- > Text␊
- > \`\`\`␊
+ > Text {MD027}␊
␊
Text␊
␊
- > > 1. \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
- > >␊
- > > 2. \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
- > >␊
- > > 3. \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
+ > Text {MD027}␊
␊
- Text␊
+ Test nothing in the blockquote:␊
␊
- > > - \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
- > >␊
- > > - \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
- > >␊
- > > - \`\`\`text␊
- > > Text␊
- > > \`\`\`␊
+ ␊
␊
- {MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}␊
- {MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}␊
- {MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}␊
- {MD031:66} {MD031:68} {MD031:69}␊
+ > ␊
+ {MD027:-1}␊
`,
}
-## blanks-around-headings--1-1.md
+## break-all-the-rules.md
> Snapshot 1
{
errors: [
{
- errorContext: 'Elderberry {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: h3; Actual: h4',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 21,
- },
- lineNumber: 19,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD001',
+ 'heading-increment',
],
},
- ],
- fixed: `# Blanks Around Headings␊
- ␊
- ## Apple␊
- ␊
- Text␊
- ## Banana␊
- ␊
- Text␊
- ␊
- ## Cherry␊
- ␊
- Text␊
- ␊
- ␊
- ## Durian ##␊
- ␊
- Text␊
- ␊
- Elderberry {MD022}␊
- ------------------␊
- ␊
- Text␊
- ␊
- ---␊
- ## Fig␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-headings-0-2.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '## Banana {MD022}',
- errorDetail: 'Expected: 2; Actual: 1; Below',
+ errorContext: null,
+ errorDetail: 'Expected: atx; Actual: atx_closed',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 9,
- },
- lineNumber: 8,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD003',
+ 'heading-style',
],
},
{
- errorContext: 'Elderberry {MD022}',
- errorDetail: 'Expected: 2; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: atx; Actual: atx_closed',
errorRange: null,
- fixInfo: {
- insertText: `␊
- ␊
- `,
- lineNumber: 23,
- },
- lineNumber: 21,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD003',
+ 'heading-style',
],
},
- ],
- fixed: `# Blanks Around Headings␊
- ␊
- ␊
- ## Apple␊
- ␊
- ␊
- Text␊
- ## Banana {MD022}␊
- ␊
- ␊
- Text␊
- ## Cherry␊
- ␊
- ␊
- Text␊
- ## Durian ##␊
- ␊
- ␊
- Text␊
- ␊
- ---␊
- Elderberry {MD022}␊
- ------------------␊
- ␊
- ␊
- Text␊
- ## Fig␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-headings-1--1.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '## Durian {MD022} ##',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: asterisk; Actual: plus',
+ errorRange: [
+ 1,
+ 4,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 2,
+ insertText: '*',
},
- lineNumber: 16,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 8,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD004',
+ 'ul-style',
],
},
- ],
- fixed: `# Blanks Around Headings␊
- ␊
- ## Apple␊
- Text␊
- ␊
- ## Banana␊
- ␊
- Text␊
- ␊
- ## Cherry␊
- ␊
- ␊
- Text␊
- ␊
- ---␊
- ␊
- ## Durian {MD022} ##␊
- ␊
- Text␊
- ␊
- ---␊
- ␊
- Elderberry␊
- ------------------␊
- Text␊
- ␊
- ## Fig␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-headings-3-0.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '## Durian {MD022} ##',
- errorDetail: 'Expected: 3; Actual: 2; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 19,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Expected: 3; Actual: 2',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 12,
+ ruleDescription: 'Inconsistent indentation for list items at the same level',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD005',
+ 'list-indent',
],
},
{
- errorContext: 'Elderberry {MD022}',
- errorDetail: 'Expected: 3; Actual: 1; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 1',
+ errorRange: [
+ 1,
+ 4,
+ ],
fixInfo: {
- insertText: `␊
- ␊
- `,
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 22,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 8,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD007',
+ 'ul-indent',
],
},
- ],
- fixed: `# Blanks Around Headings␊
- ␊
- ␊
- ␊
- ## Apple␊
- Text␊
- ␊
- ␊
- ␊
- ## Banana␊
- Text␊
- ␊
- ␊
- ␊
- ## Cherry␊
- Text␊
- ␊
- ␊
- ␊
- ## Durian {MD022} ##␊
- Text␊
- ␊
- ␊
- ␊
- Elderberry {MD022}␊
- ------------------␊
- Text␊
- ␊
- ␊
- ␊
- ## Fig␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-headings-arrays.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '# Apple - Top {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 3',
+ errorRange: [
+ 1,
+ 5,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 5,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 11,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '## Banana - Top {MD022}',
- errorDetail: 'Expected: 2; Actual: 1; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorRange: [
+ 17,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 17,
},
- lineNumber: 18,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 14,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '## Banana - Bottom {MD022}',
- errorDetail: 'Expected: 2; Actual: 1; Below',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
+ errorRange: [
+ 1,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 25,
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 24,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 14,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '### Cherry - Top {MD022}',
- errorDetail: 'Expected: 3; Actual: 2; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: '(name)[link]',
+ errorRange: [
+ 1,
+ 12,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 12,
+ editColumn: 1,
+ insertText: '[name](link)',
},
- lineNumber: 35,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 16,
+ ruleDescription: 'Reversed link syntax',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD011',
+ 'no-reversed-links',
],
},
{
- errorContext: '### Cherry - Bottom {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: 1; Actual: 2',
errorRange: null,
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 42,
+ deleteCount: -1,
},
- lineNumber: 41,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 18,
+ ruleDescription: 'Multiple consecutive blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD012',
+ 'no-multiple-blanks',
],
},
{
- errorContext: '#### Durian - Bottom {MD022} ####',
- errorDetail: 'Expected: 3; Actual: 1; Below',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: 80; Actual: 97',
+ errorRange: [
+ 81,
+ 17,
+ ],
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ ruleNames: [
+ 'MD013',
+ 'line-length',
+ ],
+ },
+ {
+ errorContext: '$ dollar {MD014}',
+ errorDetail: null,
+ errorRange: [
+ 5,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- ␊
- `,
- lineNumber: 55,
+ deleteCount: 2,
+ editColumn: 5,
},
- lineNumber: 54,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 23,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '##### Elderberry - Top {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: '#Heading 4 {MD018}',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ editColumn: 2,
+ insertText: ' ',
},
- lineNumber: 61,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 25,
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
{
- errorContext: '###### Fig - Top {MD022} ######',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: '# Heading 5 {MD019}',
+ errorDetail: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 74,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 27,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '###### Fig - Bottom {MD022} ######',
- errorDetail: 'Expected: 4; Actual: 1; Below',
- errorRange: null,
+ errorContext: '#Heading 6 {MD020} #',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- ␊
- ␊
- `,
- lineNumber: 82,
+ deleteCount: 20,
+ editColumn: 1,
+ insertText: '# Heading 6 {MD020} #',
},
- lineNumber: 81,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 29,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: 'Grape - Top {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: '# Heading 7 {MD021} {MD003} ...',
+ errorDetail: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 89,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 31,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: 'Honeycomb - Top {MD022}',
- errorDetail: 'Expected: 2; Actual: 1; Above',
- errorRange: null,
+ errorContext: '... Heading 7 {MD021} {MD003} #',
+ errorDetail: null,
+ errorRange: [
+ 30,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 30,
},
- lineNumber: 107,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 31,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: 'Honeycomb - Bottom {MD022}',
- errorDetail: 'Expected: 2; Actual: 1; Below',
+ errorContext: '## Heading 10 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 116,
},
- lineNumber: 114,
+ lineNumber: 86,
ruleDescription: 'Headings should be surrounded by blank lines',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
@@ -4671,1703 +4666,1369 @@ Generated by [AVA](https://avajs.dev).
'blanks-around-headings',
],
},
- ],
- fixed: `# Blanks Around Headings (Arrays)␊
- ␊
- # Apple - Good␊
- Text␊
- ␊
- # Apple - Top {MD022}␊
- Text␊
- ␊
- # Apple - Bottom␊
- ␊
- Text␊
- ␊
- ␊
- ## Banana - Good␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- ## Banana - Top {MD022}␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- ## Banana - Bottom {MD022}␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- ␊
- ### Cherry - Good␊
- ␊
- Text␊
- ␊
- ␊
- ␊
- ### Cherry - Top {MD022}␊
- ␊
- Text␊
- ␊
- ␊
- ␊
- ### Cherry - Bottom {MD022}␊
- ␊
- Text␊
- #### Durian - Good ####␊
- ␊
- ␊
- ␊
- Text␊
- ␊
- #### Durian - Top ####␊
- ␊
- ␊
- ␊
- Text␊
- #### Durian - Bottom {MD022} ####␊
- ␊
- ␊
- ␊
- Text␊
- ␊
- ##### Elderberry - Good␊
- ␊
- Text␊
- ␊
- ##### Elderberry - Top {MD022}␊
- ␊
- Text␊
- ␊
- ##### Elderberry - Bottom␊
- Text␊
- ␊
- ###### Fig - Good ######␊
- ␊
- ␊
- ␊
- ␊
- Text␊
- ␊
- ###### Fig - Top {MD022} ######␊
- ␊
- ␊
- ␊
- ␊
- Text␊
- ␊
- ###### Fig - Bottom {MD022} ######␊
- ␊
- ␊
- ␊
- ␊
- Text␊
- ␊
- Grape - Good␊
- ============␊
- ␊
- ---␊
- ␊
- Grape - Top {MD022}␊
- ===================␊
- ␊
- Text␊
- ␊
- Grape - Bottom␊
- ==============␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- Honeycomb - Good␊
- ---------␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- Honeycomb - Top {MD022}␊
- -----------------------␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- Honeycomb - Bottom {MD022}␊
- --------------------------␊
- ␊
- ␊
- Text␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-headings.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '## Banana {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: ' # Heading 9 {MD023} {MD026}.',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 8,
+ deleteCount: 1,
+ editColumn: 1,
},
- lineNumber: 7,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 40,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD023',
+ 'heading-start-left',
],
},
{
- errorContext: '## Durian {MD022} ##',
- errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorContext: 'Heading 8',
+ errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 13,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 35,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: 'Elderberry {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Punctuation: \'.\'',
+ errorRange: [
+ 29,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 29,
},
- lineNumber: 18,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 40,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: 'Elderberry {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: '> {MD027}',
+ errorDetail: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 20,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 18,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 42,
+ ruleDescription: 'Multiple spaces after blockquote symbol',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD027',
+ 'no-multiple-space-blockquote',
],
},
- ],
- fixed: `# Blanks Around Headings␊
- ␊
- ## Apple␊
- ␊
- Text␊
- ␊
- ## Banana {MD022}␊
- ␊
- Text␊
- ␊
- ## Cherry␊
- ␊
- Text␊
- ␊
- ## Durian {MD022} ##␊
- ␊
- Text␊
- ␊
- ---␊
- ␊
- Elderberry {MD022}␊
- ------------------␊
- ␊
- Text␊
- ␊
- ## Fig␊
- ␊
- ␊
- `,
- }
-
-## blanks-around-tables.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe',
- errorRange: [
- 1,
- 1,
- ],
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Table pipe style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
+ lineNumber: 43,
+ ruleDescription: 'Blank line inside blockquote',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
ruleNames: [
- 'MD055',
- 'table-pipe-style',
+ 'MD028',
+ 'no-blanks-blockquote',
],
},
{
errorContext: null,
- errorDetail: 'Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe',
+ errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3',
errorRange: [
- 29,
1,
+ 3,
],
fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Table pipe style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
+ lineNumber: 47,
+ ruleDescription: 'Ordered list item prefix',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md',
ruleNames: [
- 'MD055',
- 'table-pipe-style',
+ 'MD029',
+ 'ol-prefix',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
+ errorDetail: 'Expected: 1; Actual: 2',
errorRange: [
- 29,
- 1,
+ 2,
+ 3,
],
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Table column count',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 3,
+ insertText: ' ',
+ },
+ lineNumber: 8,
+ ruleDescription: 'Spaces after list markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
ruleNames: [
- 'MD056',
- 'table-column-count',
+ 'MD030',
+ 'list-marker-space',
],
},
{
- errorContext: '| Header | {MD058} |',
+ errorContext: '```',
errorDetail: null,
errorRange: null,
fixInfo: {
insertText: `␊
`,
+ lineNumber: 51,
},
- lineNumber: 8,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 50,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '| Cell | {MD058} |',
+ errorContext: '* list {MD032}',
errorDetail: null,
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 20,
+ lineNumber: 8,
},
- lineNumber: 19,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 7,
+ ruleDescription: 'Lists should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD032',
+ 'blanks-around-lists',
],
},
{
- errorContext: '> | Header | {MD058} |',
+ errorContext: '+ list {MD004} {MD007} {MD030...',
errorDetail: null,
errorRange: null,
fixInfo: {
- insertText: `>␊
+ insertText: `␊
`,
},
- lineNumber: 25,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 8,
+ ruleDescription: 'Lists should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD032',
+ 'blanks-around-lists',
],
},
{
- errorContext: '> | Cell | {MD058} |',
+ errorContext: '* list {MD032} {MD046:49}',
errorDetail: null,
errorRange: null,
fixInfo: {
- insertText: `>␊
+ insertText: `␊
`,
- lineNumber: 28,
},
- lineNumber: 27,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 51,
+ ruleDescription: 'Lists should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD032',
+ 'blanks-around-lists',
],
},
{
- errorContext: '> | Cell | {MD058} |',
+ errorContext: null,
+ errorDetail: 'Element: br',
+ errorRange: [
+ 1,
+ 5,
+ ],
+ fixInfo: null,
+ lineNumber: 55,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleNames: [
+ 'MD033',
+ 'no-inline-html',
+ ],
+ },
+ {
+ errorContext: 'https://example.com/page',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 24,
+ ],
fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 33,
+ deleteCount: 24,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 32,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 57,
+ ruleDescription: 'Bare URL used',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD034',
+ 'no-bare-urls',
],
},
{
- errorContext: '| Header | {MD058} |',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 36,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ fixInfo: null,
+ lineNumber: 61,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: '| Cell | {MD058} |',
+ errorContext: 'Section {MD036} Heading',
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 39,
- },
- lineNumber: 38,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ fixInfo: null,
+ lineNumber: 65,
+ ruleDescription: 'Emphasis used instead of a heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD036',
+ 'no-emphasis-as-heading',
],
},
{
- errorContext: '| Header | {MD058} |',
+ errorContext: 'h _',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 14,
+ 3,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 15,
},
- lineNumber: 42,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 67,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: '| Cell | {MD058} |',
+ errorContext: '`with `',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 6,
+ 7,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 45,
+ deleteCount: 5,
+ editColumn: 7,
+ insertText: 'with',
},
- lineNumber: 44,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 69,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '| Header | {MD058} |',
+ errorContext: '[link with space ]',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 18,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 16,
+ editColumn: 2,
+ insertText: 'link with space',
},
- lineNumber: 48,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 71,
+ ruleDescription: 'Spaces inside link text',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD039',
+ 'no-space-in-links',
],
},
{
- errorContext: '| Cell | {MD058} |',
+ errorContext: '```',
errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 51,
- },
- lineNumber: 50,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ fixInfo: null,
+ lineNumber: 73,
+ ruleDescription: 'Fenced code blocks should have a language specified',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD040',
+ 'fenced-code-language',
],
},
- ],
- fixed: `# Blanks Around Tables␊
- ␊
- | Header | Header |␊
- | ------ | ------ |␊
- | Cell | Cell |␊
- ␊
- Text␊
- ␊
- | Header | {MD058} |␊
- | ------ | ------- |␊
- | Cell | Cell |␊
- ␊
- | Header | Header |␊
- | ------ | ------ |␊
- | Cell | Cell |␊
- Part of table {MD055} {MD056}␊
- ␊
- | Header | Header |␊
- | ------ | ------- |␊
- | Cell | {MD058} |␊
- ␊
- > Blockquote␊
- ␊
- Text␊
- ␊
- > Text␊
- >␊
- > | Header | {MD058} |␊
- > | ------ | ------- |␊
- > | Cell | {MD058} |␊
- >␊
- Text␊
- ␊
- > | Header | Header |␊
- > | ------ | ------- |␊
- > | Cell | {MD058} |␊
- >␊
- > > Blockquote␊
- ␊
- - List Item␊
- ␊
- | Header | {MD058} |␊
- | ------ | ------- |␊
- | Cell | {MD058} |␊
- ␊
- - List Item␊
- ␊
- 1. List Item␊
- ␊
- | Header | {MD058} |␊
- | ------ | ------- |␊
- | Cell | {MD058} |␊
- ␊
- 1. List Item␊
- ␊
- :::directive␊
- ␊
- | Header | {MD058} |␊
- | ------ | ------- |␊
- | Cell | {MD058} |␊
- ␊
- :::␊
- `,
- }
-
-## blanks-around.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Blanks Around␊
- ␊
- ---␊
- ␊
- ## MD022/blanks-around-headings␊
- ␊
- >␊
- ### Alpha␊
- > >␊
- ␊
- ␊
- ### Beta␊
- ␊
- ␊
- > Text␊
- >␊
- > ### Gamma␊
- > >␊
- > > Text␊
- ␊
- ---␊
- ␊
- ## MD031/blanks-around-fences␊
- ␊
- > >␊
- \`\`\`js␊
- console.log();␊
- \`\`\`␊
- >␊
- ␊
- ␊
- \`\`\`js␊
- console.log();␊
- \`\`\`␊
- ␊
- ␊
- > Text␊
- >␊
- > \`\`\`js␊
- > console.log();␊
- > \`\`\`␊
- > >␊
- > >Text␊
- ␊
- ---␊
- ␊
- ## MD032/blanks-around-lists␊
- ␊
- >␊
- - List item␊
- >>␊
- ␊
- ␊
- - List item␊
- ␊
- ␊
- > Text␊
- >␊
- > - List item␊
- >>␊
- >> Text␊
- `,
- }
-
-## blockquote-headings.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '> # Quoted heading in list {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorContext: '## Heading 1 {MD041:1}',
+ errorDetail: null,
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 23,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 1,
+ ruleDescription: 'First line in a file should be a top-level heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD041',
+ 'first-line-heading',
+ 'first-line-h1',
],
},
{
- errorContext: '> # Quoted heading in list {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 24,
- },
- lineNumber: 23,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
- ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ errorContext: '[empty link]()',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 14,
],
- },
- {
- errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 26,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 81,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: '> > # Double-quoted heading in list {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: # Broken; Actual: # Heading 3 {MD003} {MD043}',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 27,
- },
- lineNumber: 26,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Required heading structure',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD043',
+ 'required-headings',
],
},
{
- errorContext: '> ## Quoted sub-heading in list {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: markdownlint; Actual: markdownLint',
+ errorRange: [
+ 1,
+ 12,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 12,
+ editColumn: 1,
+ insertText: 'markdownlint',
},
- lineNumber: 29,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 83,
+ ruleDescription: 'Proper names should have the correct capitalization',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD044',
+ 'proper-names',
],
},
{
- errorContext: '> ## Quoted sub-heading in list {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 30,
- },
- lineNumber: 29,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 14,
+ ],
+ fixInfo: null,
+ lineNumber: 85,
+ ruleDescription: 'Images should have alternate text (alt text)',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD045',
+ 'no-alt-text',
],
},
{
- errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorContext: null,
+ errorDetail: 'Expected: indented; Actual: fenced',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 33,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 49,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD046',
+ 'code-block-style',
],
},
{
- errorContext: '> ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: indented; Actual: fenced',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 34,
- },
- lineNumber: 33,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 73,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD046',
+ 'code-block-style',
],
},
{
- errorContext: '> ## Heading One {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorContext: null,
+ errorDetail: 'Expected: indented; Actual: fenced',
errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 41,
- },
- lineNumber: 40,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 77,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD046',
+ 'code-block-style',
],
},
{
- errorContext: '> ## Heading Two {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: null,
+ errorRange: [
+ 11,
+ 1,
+ ],
fixInfo: {
- insertText: `>␊
+ editColumn: 12,
+ insertText: `␊
`,
},
- lineNumber: 46,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 140,
+ ruleDescription: 'Files should end with a single newline character',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD047',
+ 'single-trailing-newline',
],
},
{
- errorContext: '> ## Heading Three {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorContext: null,
+ errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- },
- lineNumber: 53,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 77,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD048',
+ 'code-fence-style',
],
},
{
- errorContext: '> ## Heading Three {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 10,
+ 1,
+ ],
fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 54,
+ deleteCount: 1,
+ editColumn: 10,
+ insertText: '_',
},
- lineNumber: 53,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 90,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD049',
+ 'emphasis-style',
],
},
{
- errorContext: '> > ### Heading Four {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 15,
+ 1,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
+ deleteCount: 1,
+ editColumn: 15,
+ insertText: '_',
},
- lineNumber: 59,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 90,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD049',
+ 'emphasis-style',
],
},
{
- errorContext: '> > ### Heading Four {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 8,
+ 2,
+ ],
fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 60,
+ deleteCount: 2,
+ editColumn: 8,
+ insertText: '__',
},
- lineNumber: 59,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 94,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD050',
+ 'strong-style',
],
},
{
- errorContext: '> > ### Heading Five {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 14,
+ 2,
+ ],
fixInfo: {
- insertText: `>␊
- `,
+ deleteCount: 2,
+ editColumn: 14,
+ insertText: '__',
},
- lineNumber: 65,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 94,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD050',
+ 'strong-style',
],
},
{
- errorContext: '> > ### Heading Five {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 66,
- },
- lineNumber: 65,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
- ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ errorContext: '[Missing link fragment](#missing)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 33,
],
- },
- {
- errorContext: '> > ### Heading Six {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `> >␊
- `,
- },
- lineNumber: 71,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 96,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: '> > ### Heading Six {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 72,
- },
- lineNumber: 71,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: '[Missing link][label]',
+ errorDetail: 'Missing link or image reference definition: "label"',
+ errorRange: [
+ 1,
+ 21,
+ ],
+ fixInfo: null,
+ lineNumber: 98,
+ ruleDescription: 'Reference links and images should use a label that is defined',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD052',
+ 'reference-links-images',
],
},
{
- errorContext: '> ## Quoted indented sub-head...',
- errorDetail: null,
+ errorContext: '[unused]: link-destination',
+ errorDetail: 'Unused link or image reference definition: "unused"',
errorRange: [
- 3,
1,
+ 26,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: -1,
},
- lineNumber: 17,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ lineNumber: 100,
+ ruleDescription: 'Link and image reference definitions should be needed',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD053',
+ 'link-image-reference-definitions',
],
},
{
- errorContext: ' > ## Quoted indented sub-he...',
+ errorContext: '[text][url]',
errorDetail: null,
errorRange: [
- 5,
1,
+ 11,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ deleteCount: 11,
+ editColumn: 1,
+ insertText: '[text](https://example.com/page)',
},
- lineNumber: 33,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ lineNumber: 103,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'Quoted heading {MD025}',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
- ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ errorContext: null,
+ errorDetail: 'Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe',
+ errorRange: [
+ 2,
+ 1,
],
- },
- {
- errorContext: 'Double-quoted heading {MD025}',
- errorDetail: null,
- errorRange: null,
fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 110,
+ ruleDescription: 'Table pipe style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD055',
+ 'table-pipe-style',
],
},
{
- errorContext: 'Quoted heading in list {MD022}...',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
- ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
+ errorRange: [
+ 11,
+ 1,
],
- },
- {
- errorContext: 'Double-quoted heading in list ...',
- errorDetail: null,
- errorRange: null,
fixInfo: null,
- lineNumber: 26,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 114,
+ ruleDescription: 'Table column count',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD056',
+ 'table-column-count',
],
},
{
- errorContext: '> ## Quoted indented sub-head...',
+ errorContext: '| table {MD058} |',
errorDetail: null,
- errorRange: [
- 3,
- 1,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ insertText: `␊
+ `,
},
- lineNumber: 17,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 117,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD058',
+ 'blanks-around-tables',
],
},
{
- errorContext: ' > ## Quoted indented sub-he...',
+ errorContext: '| cell {MD058} |',
errorDetail: null,
- errorRange: [
- 5,
- 1,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ insertText: `␊
+ `,
+ lineNumber: 120,
},
- lineNumber: 33,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 119,
+ ruleDescription: 'Tables should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD058',
+ 'blanks-around-tables',
],
},
],
- fixed: `# Heading␊
+ fixed: `## Heading 1 {MD041:1}␊
␊
- ## Sub-heading␊
+ #### Heading 2 {MD001:3}␊
␊
- > # Quoted heading {MD025}␊
+ # Heading 3 {MD003} {MD043} #␊
␊
- Text␊
+ * list {MD032}␊
␊
- > > # Double-quoted heading {MD025}␊
+ * list {MD004} {MD007} {MD030} {MD032}␊
␊
- Text␊
+ * list␊
+ * list {MD007}␊
+ * list {MD005}␊
␊
- > ## Quoted sub-heading␊
+ {MD009} {MD010}␊
␊
- Text␊
+ [name](link) {MD011}␊
␊
- > ## Quoted indented sub-heading {MD023} {MD027}␊
+ {MD012:18}␊
␊
- Text␊
+ long line long line long line long line long line long line long line long line long line {MD013}␊
␊
- - Item␊
- item␊
+ dollar {MD014}␊
␊
- > # Quoted heading in list {MD022} {MD025}␊
+ # Heading 4 {MD018}␊
␊
- - Item␊
- item␊
+ # Heading 5 {MD019}␊
␊
- > > # Double-quoted heading in list {MD022} {MD025}␊
+ # Heading 6 {MD020} #␊
␊
- - Item␊
- item␊
+ # Heading 7 {MD021} {MD003} #␊
␊
- > ## Quoted sub-heading in list {MD022}␊
+ # Heading 8␊
␊
- - Item␊
- - Item␊
- item␊
+ # Heading 8␊
␊
- > ## Quoted indented sub-heading in list {MD022} {MD023} {MD027}␊
+ {MD024:35}␊
+ Note: Can not break MD025 and MD041 in the same file␊
␊
- - Item␊
+ # Heading 9 {MD023} {MD026}␊
␊
- Text␊
+ > {MD027}␊
␊
- > Text␊
- >␊
- > ## Heading One {MD022}␊
- >␊
- > Text␊
+ > {MD028:43}␊
␊
- Text␊
+ 1. list␊
+ 3. list {MD029}␊
␊
- > Text␊
- >␊
- > ## Heading Two {MD022}␊
- >␊
- > Text␊
+ \`\`\`js␊
+ \`\`\`␊
␊
- Text␊
+ * list {MD032} {MD046:49}␊
␊
- > Text␊
- >␊
- > ## Heading Three {MD022}␊
- >␊
- > Text␊
+ {MD031:50}␊
␊
- Text␊
+
{MD033}␊
␊
- > > Text␊
- > >␊
- > > ### Heading Four {MD022}␊
- > >␊
- > > Text␊
+ {MD034}␊
␊
- Text␊
+ ---␊
␊
- > Text␊
- >␊
- > > ### Heading Five {MD022}␊
- > >␊
- > > Text␊
+ ***␊
␊
- Text␊
+ {MD035:61}␊
␊
- > > Text␊
- > >␊
- > > ### Heading Six {MD022}␊
- >␊
- > Text␊
+ _Section {MD036} Heading_␊
+ ␊
+ Emphasis _with_ space {MD037}␊
+ ␊
+ Code \`with\` space {MD038}␊
+ ␊
+ [link with space](link) {MD039}␊
+ ␊
+ \`\`\`␊
+ code fence without language {MD040:73} {MD046:73}␊
+ \`\`\`␊
+ ␊
+ ~~~js␊
+ code fence with different style {MD048:77} {MD046:77}␊
+ ~~~␊
+ ␊
+ [empty link]() {MD042}␊
+ ␊
+ markdownlint {MD044}␊
+ ␊
+ ![](image.jpg) {MD045}␊
+ ␊
+ ## Heading 10 {MD022}␊
+ ␊
+ Emphasis _with_ underscore style␊
+ ␊
+ Emphasis _with_ different style {MD049}␊
+ ␊
+ Strong __with__ underscore style␊
+ ␊
+ Strong __with__ different style {MD050}␊
+ ␊
+ [Missing link fragment](#missing) {MD051}␊
+ ␊
+ [Missing link][label] {MD052}␊
+ ␊
+ {MD053:100}␊
+ ␊
+ [text](https://example.com/page) {MD054}␊
+ ␊
+ ␊
+ [url]: https://example.com/page␊
+ ␊
+ | table | header |␊
+ |--------|--------|␊
+ {MD055} | cell |␊
+ ␊
+ | table | header |␊
+ |---------|--------|␊
+ | {MD056} |␊
␊
Text␊
+ ␊
+ | table {MD058} |␊
+ |-------|␊
+ | cell {MD058} |␊
+ ␊
+ > Blockquote␊
+ ␊
+ ␊
+ ␊
+ EOF {MD047}␊
`,
}
-## blockquote-spaces-nested.md
+## bulleted_list_2_space_indent.md
> Snapshot 1
{
errors: [
{
- errorContext: '> A {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 4; Actual: 2',
errorRange: [
- 3,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 0,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 3,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 7,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> > B {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 8; Actual: 4',
errorRange: [
- 5,
1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ deleteCount: 0,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 5,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 8,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
+ ],
+ fixed: `# bulleted_list_2_space_indent␊
+ ␊
+ This is a document where the lists are indented by 2 spaces, but the style is␊
+ set to 4 space indents for lists:␊
+ ␊
+ * Test X␊
+ * Test Y {MD007}␊
+ * Test Z {MD007}␊
+ ␊
+ ␊
+ `,
+ }
+
+## bulleted_list_4_space_indent.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '> C {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 4',
errorRange: [
- 3,
1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 7,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 4,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> A {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 4; Actual: 8',
errorRange: [
- 3,
1,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 4,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 11,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 5,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
+ ],
+ fixed: `# bulleted_list_4_space_indent␊
+ ␊
+ * Test X␊
+ * Test Y {MD007}␊
+ * Test Z {MD007}␊
+ `,
+ }
+
+## bulleted_list_not_at_beginning_of_line.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '> > B {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 5,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 13,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 15,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> > > C {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 4',
errorRange: [
- 7,
1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 7,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 15,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 16,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> > D {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 4',
errorRange: [
- 5,
1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
lineNumber: 17,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> E {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 4; Actual: 6',
errorRange: [
- 3,
1,
+ 8,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 19,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 18,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> A {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 4',
errorRange: [
- 3,
1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 23,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 19,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '>> B {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 4,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 4,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 25,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 20,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '>>> C {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 5,
1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- },
- lineNumber: 27,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: '>> D {MD027}',
- errorDetail: null,
- errorRange: [
4,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 4,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 29,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 21,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> E {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 3,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 31,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 30,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 2; Actual: 4',
errorRange: [
- 5,
1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- },
- lineNumber: 35,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
- errorRange: [
6,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 6,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 39,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 31,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
- 7,
1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 7,
- },
- lineNumber: 43,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: '> > Text {MD027}',
- errorDetail: null,
- errorRange: [
3,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 3,
- },
- lineNumber: 47,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: '> > > Text {MD027}',
- errorDetail: null,
- errorRange: [
- 5,
- 1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 51,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 41,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '> > > > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
- 5,
1,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 55,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 42,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: '>> >> Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
- 4,
1,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 4,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 59,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 43,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 6,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 6,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 63,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 55,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 7,
1,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 7,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 67,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 57,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
{
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0; Actual: 2',
errorRange: [
- 8,
1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 8,
- },
- lineNumber: 71,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: ' > > Text {MD027}',
- errorDetail: null,
- errorRange: [
4,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 4,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
},
- lineNumber: 75,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 59,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD007',
+ 'ul-indent',
],
},
],
- fixed: `# Nested blockquote␊
- ␊
- > A {MD027}␊
- >␊
- > > B {MD027}␊
- >␊
- > C {MD027}␊
+ fixed: `# Bulleted List Not at Beginning of Line␊
␊
Text␊
␊
- > A {MD027}␊
- >␊
- > > B {MD027}␊
- > >␊
- > > > C {MD027}␊
- > >␊
- > > D {MD027}␊
- >␊
- > E {MD027}␊
+ * Item␊
+ * Item␊
+ * Item␊
+ * Item␊
+ * Item␊
+ * Item␊
+ * Item␊
␊
Text␊
␊
- > A {MD027}␊
- >␊
- >> B {MD027}␊
- >>␊
- >>> C {MD027}␊
- >>␊
- >> D {MD027}␊
- >␊
- > E {MD027}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
␊
Text␊
␊
- > > Text {MD027}␊
+ * Item␊
+ * Item␊
␊
Text␊
␊
- > > Text {MD027}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
␊
Text␊
␊
- > > Text {MD027}␊
+ * Item␊
+ * Item␊
+ * Item␊
␊
Text␊
␊
- > > Text {MD027}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
+ * Item {MD007}␊
␊
Text␊
␊
- > > > Text {MD027}␊
+ * Item␊
␊
- Text␊
+ * Item␊
␊
- > > > > Text {MD027}␊
+ * Item␊
␊
Text␊
␊
- >> >> Text {MD027}␊
+ * Item {MD007}␊
␊
- Text␊
+ * Item {MD007}␊
␊
- > > Text {MD027}␊
+ * Item {MD007}␊
+ `,
+ }
+
+## byte-order-marker-utf8.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
␊
Text␊
- ␊
- > > Text {MD027}␊
+ `,
+ }
+
+## code-block-in-list.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Code Block in List␊
␊
Text␊
␊
- > > Text {MD027}␊
+ \`\`\`js␊
+ // Code␊
+ \`\`\`␊
␊
Text␊
␊
- > > Text {MD027}␊
+ 1. Item␊
+ ␊
+ \`\`\`js␊
+ // Code␊
+ \`\`\`␊
+ ␊
+ 1. Item␊
+ ␊
+ \`\`\`js␊
+ // Code␊
+ \`\`\`␊
`,
}
-## blockquote_blank_lines.md
+## code-block-trailing-spaces.md
> Snapshot 1
@@ -6375,16 +6036,16 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 1,
+ 28,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
+ deleteCount: 2,
+ editColumn: 28,
},
- lineNumber: 12,
+ lineNumber: 5,
ruleDescription: 'Trailing spaces',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
@@ -6392,409 +6053,341 @@ Generated by [AVA](https://avajs.dev).
'no-trailing-spaces',
],
},
- {
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
- errorRange: null,
- fixInfo: {
- deleteCount: -1,
- },
- lineNumber: 10,
- ruleDescription: 'Multiple consecutive blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
- ruleNames: [
- 'MD012',
- 'no-multiple-blanks',
- ],
- },
- {
- errorContext: null,
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
- {
- errorContext: null,
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
- {
- errorContext: null,
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 10,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
- {
- errorContext: null,
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 12,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
- {
- errorContext: null,
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
- ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
- ],
- },
],
- fixed: `# blockquote_blank_lines␊
- ␊
- Some text␊
+ fixed: `# code-block-trailing-spaces␊
␊
- > a quote␊
- > same quote␊
+ Text␊
␊
- > blank line above me␊
+ Two trailing spaces {MD009}␊
␊
- > two blank lines above me␊
+ Text␊
␊
- > space above me␊
+ Indented code block␊
␊
- * List with embedded blockquote␊
+ Statement␊
+ Indented statement␊
+ ␊
+ Statement␊
+ Indented statement␊
␊
- > Test␊
- > Test␊
+ Two trailing spaces ␊
␊
- > Test␊
+ Text␊
␊
- * Item 2␊
+ \`\`\`text␊
+ Fenced code block␊
␊
- > Test. The blank line below should _not_ trigger MD028 as one blockquote is␊
- > inside the list, and the other is outside it.␊
+ Statement␊
+ Indented statement␊
+ ␊
+ Statement␊
+ Indented statement␊
␊
- > Test␊
+ Two trailing spaces ␊
+ \`\`\`␊
␊
- Expected errors:␊
+ Text␊
␊
- {MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19}␊
- {MD009:12} (trailing space is intentional)␊
- {MD012:10} (multiple blank lines are intentional)␊
+ ␊
`,
}
-## blockquote_spaces.md
+## code-block-with-language-allowed.md
> Snapshot 1
{
errors: [
{
- errorContext: '> Foo {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 3,
- },
- lineNumber: 6,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
- ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
- ],
- },
- {
- errorContext: '> Bar {MD027}',
- errorDetail: null,
- errorRange: [
- 3,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 7,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 34,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> *foo* {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 14,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 35,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> **bar** {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 15,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 36,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> "Baz" {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
+ 1,
3,
- 2,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 3,
+ deleteCount: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 16,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 37,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> `qux` {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
+ 1,
2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 17,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 38,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> Foo {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 27,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 39,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> Bar {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 10',
errorRange: [
- 3,
+ 10,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 10,
+ insertText: ' ',
},
- lineNumber: 28,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 41,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: ' > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 4,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 4,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 33,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 45,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: ' > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 5,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 37,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 46,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: ' > Text {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 6,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 6,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 41,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 47,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '> ',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 47,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 48,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD010',
+ 'no-hard-tabs',
],
},
],
- fixed: `# blockquote_spaces␊
- ␊
- Some text␊
- ␊
- > Hello world␊
- > Foo {MD027}␊
- > Bar {MD027}␊
- ␊
- This tests other things embedded in the blockquote:␊
- ␊
- - foo␊
- ␊
- > *Hello world*␊
- > *foo* {MD027}␊
- > **bar** {MD027}␊
- > "Baz" {MD027}␊
- > \`qux\` {MD027}␊
- > *foo* more text␊
- > **bar** more text␊
- > 'baz' more text␊
- > \`qux\` more text␊
- >␊
- > - foo␊
- ␊
- Test the first line being indented too much:␊
- ␊
- > Foo {MD027}␊
- > Bar {MD027}␊
- > Baz␊
- ␊
- Test spaces before the blockquote:␊
+ fixed: `# Heading␊
␊
- > Text {MD027}␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ \`\`\`␊
␊
- Text␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ \`\`\`␊
␊
- > Text {MD027}␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
␊
- Text␊
+ \`\`\`text␊
+ hello␊
+ world␊
+ }␊
+ \`\`\`␊
␊
- > Text {MD027}␊
+ if (true) { // {MD010}␊
+ console.log("true"); // {MD010}␊
+ if (false) { // {MD010}␊
+ console.log("false"); // {MD010}␊
+ } // {MD010}␊
+ } // {MD010}␊
␊
- Test nothing in the blockquote:␊
+ Line with hard tab. {MD010}␊
␊
- ␊
+ \`\`\`javascript␊
+ if (true) {␊
+ console.log("true"); // {MD010}␊
+ if (false) { // {MD010}␊
+ console.log("false"); // {MD010}␊
+ } // {MD010}␊
+ }␊
+ \`\`\`␊
␊
- > ␊
- {MD027:-1}␊
+ ␊
`,
}
-## break-all-the-rules.md
+## code-block-with-tabs-allowed.md
> Snapshot 1
@@ -6802,136 +6395,146 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: h3; Actual: h4',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
- ruleNames: [
- 'MD001',
- 'heading-increment',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: atx; Actual: atx_closed',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
- ruleNames: [
- 'MD003',
- 'heading-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: atx; Actual: atx_closed',
- errorRange: null,
- fixInfo: null,
- lineNumber: 31,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
- ruleNames: [
- 'MD003',
- 'heading-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: plus',
+ errorDetail: 'Column: 10',
errorRange: [
+ 10,
1,
- 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 2,
- insertText: '*',
+ editColumn: 10,
+ insertText: ' ',
},
- lineNumber: 8,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 35,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 3; Actual: 2',
- errorRange: [
- 1,
- 4,
- ],
+ errorDetail: 'Expected: fenced; Actual: indented',
+ errorRange: null,
fixInfo: null,
- lineNumber: 12,
- ruleDescription: 'Inconsistent indentation for list items at the same level',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
+ lineNumber: 21,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD005',
- 'list-indent',
+ 'MD046',
+ 'code-block-style',
],
},
+ ],
+ fixed: `# Heading␊
+ ␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ \`\`\`␊
+ ␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ \`\`\`␊
+ ␊
+ if (true) { // {MD046}␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ ␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ ␊
+ Line with hard tab. {MD010}␊
+ ␊
+ ␊
+ `,
+ }
+
+## code-block-with-tabs.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorDetail: 'Column: 1',
errorRange: [
1,
- 4,
+ 1,
],
fixInfo: {
deleteCount: 1,
editColumn: 1,
- insertText: '',
+ insertText: ' ',
},
- lineNumber: 8,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 14,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 3',
+ errorDetail: 'Column: 1',
errorRange: [
1,
- 5,
+ 1,
],
fixInfo: {
deleteCount: 1,
editColumn: 1,
- insertText: '',
+ insertText: ' ',
},
- lineNumber: 11,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 15,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorDetail: 'Column: 1',
errorRange: [
- 17,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 17,
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 14,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 16,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
@@ -6946,7 +6549,7 @@ Generated by [AVA](https://avajs.dev).
editColumn: 1,
insertText: ' ',
},
- lineNumber: 14,
+ lineNumber: 17,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -6956,303 +6559,461 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: '(name)[link]',
+ errorDetail: 'Column: 1',
errorRange: [
1,
- 12,
+ 1,
],
fixInfo: {
- deleteCount: 12,
+ deleteCount: 1,
editColumn: 1,
- insertText: '[name](link)',
- },
- lineNumber: 16,
- ruleDescription: 'Reversed link syntax',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md011.md',
- ruleNames: [
- 'MD011',
- 'no-reversed-links',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
- errorRange: null,
- fixInfo: {
- deleteCount: -1,
+ insertText: ' ',
},
- lineNumber: 18,
- ruleDescription: 'Multiple consecutive blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
+ lineNumber: 28,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD012',
- 'no-multiple-blanks',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 80; Actual: 97',
- errorRange: [
- 81,
- 17,
- ],
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
- ruleNames: [
- 'MD013',
- 'line-length',
- ],
- },
- {
- errorContext: '$ dollar {MD014}',
- errorDetail: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 5,
+ 1,
2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 5,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 23,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 29,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '#Heading 4 {MD018}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
1,
2,
],
fixInfo: {
- editColumn: 2,
- insertText: ' ',
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 25,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
+ lineNumber: 30,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '# Heading 5 {MD019}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
1,
+ 3,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 27,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
+ lineNumber: 31,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '#Heading 6 {MD020} #',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
1,
2,
],
fixInfo: {
- deleteCount: 20,
+ deleteCount: 2,
editColumn: 1,
- insertText: '# Heading 6 {MD020} #',
+ insertText: ' ',
},
- lineNumber: 29,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 32,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '# Heading 7 {MD021} {MD003} ...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 31,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 33,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '... Heading 7 {MD021} {MD003} #',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 10',
errorRange: [
- 30,
+ 10,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 30,
+ editColumn: 10,
+ insertText: ' ',
},
- lineNumber: 31,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 35,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '## Heading 10 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorContext: null,
+ errorDetail: 'Expected: fenced; Actual: indented',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 86,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD046',
+ 'code-block-style',
],
},
+ ],
+ fixed: `# Heading␊
+ ␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ \`\`\`␊
+ ␊
+ \`\`\`js␊
+ if (true) {␊
+ console.log("true"); // {MD010}␊
+ if (false) { // {MD010}␊
+ console.log("false"); // {MD010}␊
+ } // {MD010}␊
+ }␊
+ \`\`\`␊
+ ␊
+ if (true) { // {MD046}␊
+ console.log("true");␊
+ if (false) {␊
+ console.log("false");␊
+ }␊
+ }␊
+ ␊
+ if (true) { // {MD010}␊
+ console.log("true"); // {MD010}␊
+ if (false) { // {MD010}␊
+ console.log("false"); // {MD010}␊
+ } // {MD010}␊
+ } // {MD010}␊
+ ␊
+ Line with hard tab. {MD010}␊
+ `,
+ }
+
+## code-blocks-and-spans.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: ' # Heading 9 {MD023} {MD026}.',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: code; Actual: Code',
errorRange: [
- 1,
- 1,
+ 3,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
+ deleteCount: 4,
+ editColumn: 3,
+ insertText: 'code',
},
- lineNumber: 40,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ lineNumber: 1,
+ ruleDescription: 'Proper names should have the correct capitalization',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD044',
+ 'proper-names',
],
},
{
- errorContext: 'Heading 8',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 35,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ errorContext: null,
+ errorDetail: 'Expected: code; Actual: CODE',
+ errorRange: [
+ 6,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 4,
+ editColumn: 6,
+ insertText: 'code',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Proper names should have the correct capitalization',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD044',
+ 'proper-names',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \'.\'',
+ errorDetail: 'Expected: code; Actual: CODE',
errorRange: [
- 29,
- 1,
+ 7,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 29,
+ deleteCount: 4,
+ editColumn: 7,
+ insertText: 'code',
},
- lineNumber: 40,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ lineNumber: 26,
+ ruleDescription: 'Proper names should have the correct capitalization',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD044',
+ 'proper-names',
],
},
{
- errorContext: '> {MD027}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: code; Actual: CODE',
errorRange: [
- 3,
- 1,
+ 7,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 3,
+ deleteCount: 4,
+ editColumn: 7,
+ insertText: 'code',
},
- lineNumber: 42,
- ruleDescription: 'Multiple spaces after blockquote symbol',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md027.md',
+ lineNumber: 28,
+ ruleDescription: 'Proper names should have the correct capitalization',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
ruleNames: [
- 'MD027',
- 'no-multiple-space-blockquote',
+ 'MD044',
+ 'proper-names',
],
},
+ ],
+ fixed: `# code Blocks and Spans {MD044}␊
+ ␊
+ Text code text {MD044}␊
+ ␊
+ Text \`CODE\` text␊
+ ␊
+ \`\`\`lang␊
+ CODE␊
+ ␊
+ CODE␊
+ \`\`\`␊
+ ␊
+ \`CODE\` text \`CODE\`␊
+ ␊
+ CODE␊
+ ␊
+ CODE␊
+ ␊
+ Text \`CODE␊
+ CODE\` text␊
+ text text␊
+ text \`CODE␊
+ CODE CODE␊
+ CODE\` text␊
+ ␊
+ Text \`code {MD044}␊
+ ␊
+ Text \`code {MD044}␊
+ ␊
+ ␊
+ `,
+ }
+
+## code-blocks-prefixed-by-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: null,
- errorRange: null,
+ errorDetail: 'Expected: 80; Actual: 98',
+ errorRange: [
+ 81,
+ 18,
+ ],
fixInfo: null,
- lineNumber: 43,
- ruleDescription: 'Blank line inside blockquote',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md028.md',
+ lineNumber: 3,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
- 'MD028',
- 'no-blanks-blockquote',
+ 'MD013',
+ 'line-length',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 3; Style: 1/2/3',
+ errorDetail: 'Expected: 80; Actual: 98',
errorRange: [
- 1,
- 3,
+ 81,
+ 18,
],
fixInfo: null,
- lineNumber: 47,
- ruleDescription: 'Ordered list item prefix',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md029.md',
+ lineNumber: 25,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
- 'MD029',
- 'ol-prefix',
+ 'MD013',
+ 'line-length',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
+ errorDetail: 'Expected: 80; Actual: 98',
errorRange: [
- 2,
- 3,
+ 81,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 39,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ ruleNames: [
+ 'MD013',
+ 'line-length',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: fenced; Actual: indented',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ ruleNames: [
+ 'MD046',
+ 'code-block-style',
],
+ },
+ ],
+ fixed: `# md013-code-blocks-spaces␊
+ ␊
+ Text text text text text text text text text text text text text text text text text text. {MD013}␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text. {MD046:21}␊
+ \`\`\`␊
+ ␊
+ Text text text text text text text text text text text text text text text text text text. {MD013}␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ \`\`\`text␊
+ Text text text text text text text text text text text text text text text text text text.␊
+ \`\`\`␊
+ ␊
+ Text text text text text text text text text text text text text text text text text text. {MD013}␊
+ ␊
+ ␊
+ `,
+ }
+
+## code-fences-in-blockquotes.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '```markdown',
+ errorDetail: null,
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 3,
- insertText: ' ',
+ insertText: `␊
+ `,
+ lineNumber: 4,
},
- lineNumber: 8,
- ruleDescription: 'Spaces after list markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md030.md',
+ lineNumber: 4,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD030',
- 'list-marker-space',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
@@ -7262,9 +7023,9 @@ Generated by [AVA](https://avajs.dev).
fixInfo: {
insertText: `␊
`,
- lineNumber: 51,
+ lineNumber: 7,
},
- lineNumber: 50,
+ lineNumber: 6,
ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
@@ -7273,299 +7034,441 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '* list {MD032}',
+ errorContext: '> ```markdown',
errorDetail: null,
errorRange: null,
fixInfo: {
- insertText: `␊
+ insertText: `>␊
`,
- lineNumber: 8,
+ lineNumber: 10,
},
- lineNumber: 7,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 10,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '+ list {MD004} {MD007} {MD030...',
+ errorContext: '> ```',
errorDetail: null,
errorRange: null,
fixInfo: {
- insertText: `␊
+ insertText: `>␊
`,
+ lineNumber: 13,
},
- lineNumber: 8,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 12,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '* list {MD032} {MD046:49}',
+ errorContext: '> > ```markdown',
errorDetail: null,
errorRange: null,
fixInfo: {
- insertText: `␊
+ insertText: `> >␊
`,
+ lineNumber: 15,
},
- lineNumber: 51,
- ruleDescription: 'Lists should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md032.md',
+ lineNumber: 15,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD032',
- 'blanks-around-lists',
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '> > ```',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `> >␊
+ `,
+ lineNumber: 18,
+ },
+ lineNumber: 17,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
],
},
+ ],
+ fixed: `# Detailed Results Code Fences in Blockquotes␊
+ ␊
+ Text␊
+ ␊
+ \`\`\`markdown␊
+ Text␊
+ \`\`\`␊
+ ␊
+ Text␊
+ ␊
+ > Text␊
+ >␊
+ > \`\`\`markdown␊
+ > Text␊
+ > \`\`\`␊
+ >␊
+ > Text␊
+ > > Text␊
+ > >␊
+ > > \`\`\`markdown␊
+ > > Text␊
+ > > \`\`\`␊
+ > >␊
+ > > Text␊
+ ␊
+ {MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}␊
+ `,
+ }
+
+## code-with-tabs-allowed.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Element: br',
+ errorDetail: 'Column: 5',
errorRange: [
- 1,
5,
+ 1,
],
- fixInfo: null,
- lineNumber: 55,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: 'https://example.com/page',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 24,
],
fixInfo: {
- deleteCount: 24,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 57,
- ruleDescription: 'Bare URL used',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md034.md',
+ lineNumber: 21,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD034',
- 'no-bare-urls',
+ 'MD010',
+ 'no-hard-tabs',
],
},
+ ],
+ fixed: `# Code With Tabs Allowed␊
+ ␊
+ Text text {MD010}␊
+ ␊
+ Text \`code code\` text␊
+ ␊
+ Text \` code\` text␊
+ ␊
+ Text \`code \` text␊
+ ␊
+ Text \`code code␊
+ code code␊
+ code code\` text␊
+ ␊
+ console.log(" ");␊
+ ␊
+ \`\`\`js␊
+ console.log(" ");␊
+ \`\`\`␊
+ ␊
+ \`\`\`j s {MD010}␊
+ console.log(" ");␊
+ \`\`\`␊
+ ␊
+ console.log("");␊
+ ␊
+ ␊
+ `,
+ }
+
+## code-with-tabs-blocked.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 61,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
],
- },
- {
- errorContext: 'Section {MD036} Heading',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 65,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: 'h _',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 11',
errorRange: [
- 14,
- 3,
+ 11,
+ 1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 15,
+ editColumn: 11,
+ insertText: ' ',
},
- lineNumber: 67,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 5,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '`with `',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 7',
errorRange: [
- 6,
7,
+ 1,
],
fixInfo: {
- deleteCount: 5,
+ deleteCount: 1,
editColumn: 7,
- insertText: 'with',
+ insertText: ' ',
},
- lineNumber: 69,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 7,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '[link with space ]',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 11',
errorRange: [
+ 11,
1,
- 18,
],
fixInfo: {
- deleteCount: 16,
- editColumn: 2,
- insertText: 'link with space',
+ deleteCount: 1,
+ editColumn: 11,
+ insertText: ' ',
},
- lineNumber: 71,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 9,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '```',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 73,
- ruleDescription: 'Fenced code blocks should have a language specified',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
- ruleNames: [
- 'MD040',
- 'fenced-code-language',
+ errorContext: null,
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
],
- },
- {
- errorContext: '## Heading 1 {MD041:1}',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 1,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 12,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: '[empty link]()',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Column: 18',
errorRange: [
+ 18,
1,
- 14,
],
- fixInfo: null,
- lineNumber: 81,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 18,
+ insertText: ' ',
+ },
+ lineNumber: 15,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: # Broken; Actual: # Heading 3 {MD003} {MD043}',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Required heading structure',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md043.md',
+ errorDetail: 'Column: 14',
+ errorRange: [
+ 14,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 14,
+ insertText: ' ',
+ },
+ lineNumber: 18,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD043',
- 'required-headings',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: markdownlint; Actual: markdownLint',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 12,
],
fixInfo: {
- deleteCount: 12,
- editColumn: 1,
- insertText: 'markdownlint',
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 83,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ lineNumber: 21,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: null,
+ errorDetail: 'Column: 14',
errorRange: [
- 1,
14,
+ 1,
],
- fixInfo: null,
- lineNumber: 85,
- ruleDescription: 'Images should have alternate text (alt text)',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md045.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 14,
+ insertText: ' ',
+ },
+ lineNumber: 22,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD045',
- 'no-alt-text',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
- errorRange: null,
- fixInfo: null,
- lineNumber: 49,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
- ruleNames: [
- 'MD046',
- 'code-block-style',
+ errorDetail: 'Column: 1',
+ errorRange: [
+ 1,
+ 1,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
- errorRange: null,
- fixInfo: null,
- lineNumber: 73,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: ' ',
+ },
+ lineNumber: 25,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
+ ],
+ fixed: `# Code With Tabs Blocked␊
+ ␊
+ Text text {MD010}␊
+ ␊
+ Text \`code code\` text {MD010}␊
+ ␊
+ Text \` code\` text {MD010}␊
+ ␊
+ Text \`code \` text {MD010}␊
+ ␊
+ Text \`code code␊
+ code code {MD010}␊
+ code code\` text␊
+ ␊
+ console.log(" "); // {MD010}␊
+ ␊
+ \`\`\`js␊
+ console.log(" "); // {MD010}␊
+ \`\`\`␊
+ ␊
+ \`\`\`j s {MD010}␊
+ console.log(" "); // {MD010}␊
+ \`\`\`␊
+ ␊
+ console.log(""); // {MD010}␊
+ ␊
+ ␊
+ `,
+ }
+
+## code_block_consistency.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
errorDetail: 'Expected: indented; Actual: fenced',
errorRange: null,
fixInfo: null,
- lineNumber: 77,
+ lineNumber: 10,
ruleDescription: 'Code block style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
@@ -7573,402 +7476,611 @@ Generated by [AVA](https://avajs.dev).
'code-block-style',
],
},
+ ],
+ fixed: `# code_block_consistency␊
+ ␊
+ This is text.␊
+ ␊
+ This is a␊
+ code block.␊
+ ␊
+ And here is more text␊
+ ␊
+ \`\`\`text␊
+ and here is a different {MD046:10}␊
+ code block␊
+ \`\`\`␊
+ `,
+ }
+
+## code_block_dollar.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
+ errorContext: '$ ls {MD014}',
errorDetail: null,
errorRange: [
- 11,
- 1,
+ 5,
+ 2,
],
fixInfo: {
- editColumn: 12,
- insertText: `␊
- `,
+ deleteCount: 2,
+ editColumn: 5,
},
- lineNumber: 140,
- ruleDescription: 'Files should end with a single newline character',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
+ lineNumber: 5,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD047',
- 'single-trailing-newline',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
- errorRange: null,
- fixInfo: null,
- lineNumber: 77,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ errorContext: '$ less foo {MD014}',
+ errorDetail: null,
+ errorRange: [
+ 5,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 5,
+ },
+ lineNumber: 6,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorContext: '$ cat bar {MD014}',
+ errorDetail: null,
errorRange: [
- 10,
- 1,
+ 5,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 5,
},
- lineNumber: 90,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 8,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorContext: '$ mkdir test {MD014}',
+ errorDetail: null,
errorRange: [
- 15,
- 1,
+ 5,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 15,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 5,
},
- lineNumber: 90,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 74,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorContext: '$ cd test {MD014}',
+ errorDetail: null,
errorRange: [
- 8,
+ 5,
2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 8,
- insertText: '__',
+ editColumn: 5,
},
- lineNumber: 94,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 75,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorContext: '$ ls test {MD014}',
+ errorDetail: null,
errorRange: [
- 14,
+ 5,
2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 14,
- insertText: '__',
+ editColumn: 5,
},
- lineNumber: 94,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ lineNumber: 76,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '[Missing link fragment](#missing)',
+ errorContext: ' $ ls example {MD014}',
errorDetail: null,
errorRange: [
- 1,
- 33,
+ 6,
+ 2,
],
- fixInfo: null,
- lineNumber: 96,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 6,
+ },
+ lineNumber: 80,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '[Missing link][label]',
- errorDetail: 'Missing link or image reference definition: "label"',
- errorRange: [
- 1,
- 21,
- ],
+ errorContext: null,
+ errorDetail: 'Expected: indented; Actual: fenced',
+ errorRange: null,
fixInfo: null,
- lineNumber: 98,
- ruleDescription: 'Reference links and images should use a label that is defined',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md052.md',
+ lineNumber: 34,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
- 'MD052',
- 'reference-links-images',
+ 'MD046',
+ 'code-block-style',
],
},
+ ],
+ fixed: `# Code Block Dollar␊
+ ␊
+ The following code block shouldn't have $ before the commands:␊
+ ␊
+ ls {MD014}␊
+ less foo {MD014}␊
+ ␊
+ cat bar {MD014}␊
+ ␊
+ However the following code block shows output, and $ can be used to␊
+ distinguish between command and output:␊
+ ␊
+ $ ls␊
+ foo bar␊
+ $ less foo␊
+ Hello world␊
+ ␊
+ $ cat bar␊
+ baz␊
+ ␊
+ The following code block uses variable names, and likewise shouldn't fire:␊
+ ␊
+ $foo = 'bar';␊
+ $baz = 'qux';␊
+ ␊
+ The following code block doesn't have any dollar signs, and shouldn't fire:␊
+ ␊
+ ls foo␊
+ cat bar␊
+ ␊
+ The following (fenced) code block doesn't have any content at all, and␊
+ shouldn't fire: {MD046:34}␊
+ ␊
+ \`\`\`bash␊
+ \`\`\`␊
+ ␊
+ Mixed content:␊
+ ␊
+ $ ls␊
+ file.md other.md␊
+ $ git branch␊
+ $ cat stuff␊
+ ␊
+ output␊
+ ␊
+ More mixed content:␊
+ ␊
+ $ ls␊
+ $ git branch␊
+ $ cat stuff␊
+ stuff here␊
+ more stuff␊
+ $ tail cat␊
+ meow␊
+ ␊
+ Command with blank lines in output:␊
+ ␊
+ $ dig example.com␊
+ ␊
+ ; ...␊
+ ;; ...␊
+ ␊
+ ;; ...␊
+ ␊
+ Some commands with no output:␊
+ ␊
+ $ mkdir test␊
+ mkdir: created directory 'test'␊
+ $ cd test␊
+ $ ls test␊
+ ␊
+ All commands with no output:␊
+ ␊
+ mkdir test {MD014}␊
+ cd test {MD014}␊
+ ls test {MD014}␊
+ ␊
+ Space-prefixed command with no output:␊
+ ␊
+ ls example {MD014}␊
+ `,
+ }
+
+## code_block_dollar_fence-empty.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ \`\`\`js␊
+ ␊
+ \`\`\`␊
+ ␊
+ \`\`\`css␊
+ ␊
+ ␊
+ \`\`\`␊
+ ␊
+ \`\`\`spaces␊
+ ␊
+ \`\`\`␊
+ ␊
+ ␊
+ `,
+ }
+
+## code_block_dollar_fence.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '[unused]: link-destination',
- errorDetail: 'Unused link or image reference definition: "unused"',
+ errorContext: '$ code {MD014}',
+ errorDetail: null,
errorRange: [
1,
- 26,
+ 2,
],
fixInfo: {
- deleteCount: -1,
+ deleteCount: 2,
+ editColumn: 1,
},
- lineNumber: 100,
- ruleDescription: 'Link and image reference definitions should be needed',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md053.md',
+ lineNumber: 4,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD053',
- 'link-image-reference-definitions',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '[text][url]',
+ errorContext: '$ code {MD014}',
errorDetail: null,
errorRange: [
1,
- 11,
+ 2,
],
fixInfo: {
- deleteCount: 11,
+ deleteCount: 2,
editColumn: 1,
- insertText: '[text](https://example.com/page)',
},
- lineNumber: 103,
- ruleDescription: 'Link and image style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ lineNumber: 10,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD054',
- 'link-image-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe',
+ errorContext: '$ code {MD014}',
+ errorDetail: null,
errorRange: [
- 2,
1,
+ 2,
],
- fixInfo: null,
- lineNumber: 110,
- ruleDescription: 'Table pipe style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md055.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 1,
+ },
+ lineNumber: 16,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD055',
- 'table-pipe-style',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 2; Actual: 1; Too few cells, row will be missing data',
+ errorContext: '$ code {MD014}',
+ errorDetail: null,
errorRange: [
- 11,
1,
+ 2,
],
- fixInfo: null,
- lineNumber: 114,
- ruleDescription: 'Table column count',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md056.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 1,
+ },
+ lineNumber: 17,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD056',
- 'table-column-count',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '| table {MD058} |',
+ errorContext: '$ code {MD014}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 2,
+ editColumn: 1,
},
- lineNumber: 117,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 23,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD014',
+ 'commands-show-output',
],
},
{
- errorContext: '| cell {MD058} |',
+ errorContext: '$ code {MD014}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 120,
+ deleteCount: 2,
+ editColumn: 1,
},
- lineNumber: 119,
- ruleDescription: 'Tables should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md058.md',
+ lineNumber: 24,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
ruleNames: [
- 'MD058',
- 'blanks-around-tables',
+ 'MD014',
+ 'commands-show-output',
],
},
- ],
- fixed: `## Heading 1 {MD041:1}␊
- ␊
- #### Heading 2 {MD001:3}␊
- ␊
- # Heading 3 {MD003} {MD043} #␊
- ␊
- * list {MD032}␊
- ␊
- * list {MD004} {MD007} {MD030} {MD032}␊
- ␊
- * list␊
- * list {MD007}␊
- * list {MD005}␊
- ␊
- {MD009} {MD010}␊
- ␊
- [name](link) {MD011}␊
- ␊
- {MD012:18}␊
- ␊
- long line long line long line long line long line long line long line long line long line {MD013}␊
- ␊
- dollar {MD014}␊
- ␊
- # Heading 4 {MD018}␊
- ␊
- # Heading 5 {MD019}␊
- ␊
- # Heading 6 {MD020} #␊
- ␊
- # Heading 7 {MD021} {MD003} #␊
- ␊
- # Heading 8␊
- ␊
- # Heading 8␊
- ␊
- {MD024:35}␊
- Note: Can not break MD025 and MD041 in the same file␊
- ␊
- # Heading 9 {MD023} {MD026}␊
- ␊
- > {MD027}␊
- ␊
- > {MD028:43}␊
- ␊
- 1. list␊
- 3. list {MD029}␊
+ {
+ errorContext: '$ npm install --save multimatc...',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 1,
+ },
+ lineNumber: 40,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ ruleNames: [
+ 'MD014',
+ 'commands-show-output',
+ ],
+ },
+ {
+ errorContext: ' $ ls example {MD014}',
+ errorDetail: null,
+ errorRange: [
+ 2,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 2,
+ },
+ lineNumber: 46,
+ ruleDescription: 'Dollar signs used before commands without showing output',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ ruleNames: [
+ 'MD014',
+ 'commands-show-output',
+ ],
+ },
+ ],
+ fixed: `# Code Block Dollar Fence␊
␊
- \`\`\`js␊
+ \`\`\`fence␊
+ code {MD014}␊
\`\`\`␊
␊
- * list {MD032} {MD046:49}␊
- ␊
- {MD031:50}␊
+ text␊
␊
-
{MD033}␊
+ \`\`\`fence␊
+ code {MD014}␊
+ \`\`\`␊
␊
- {MD034}␊
+ text␊
␊
- ---␊
+ \`\`\`fence␊
+ code {MD014}␊
+ code {MD014}␊
+ \`\`\`␊
␊
- ***␊
+ text␊
␊
- {MD035:61}␊
+ \`\`\`fence␊
+ code {MD014}␊
+ code {MD014}␊
+ \`\`\`␊
␊
- _Section {MD036} Heading_␊
+ text␊
␊
- Emphasis _with_ space {MD037}␊
+ \`\`\`fence␊
+ $ code␊
+ code␊
+ $ code␊
+ code␊
+ \`\`\`␊
␊
- Code \`with\` space {MD038}␊
+ text␊
␊
- [link with space](link) {MD039}␊
+ \`\`\`sh␊
␊
+ npm install --save multimatch {MD014}␊
\`\`\`␊
- code fence without language {MD040:73} {MD046:73}␊
- \`\`\`␊
- ␊
- ~~~js␊
- code fence with different style {MD048:77} {MD046:77}␊
- ~~~␊
␊
- [empty link]() {MD042}␊
+ Space-prefixed command with no output:␊
␊
- markdownlint {MD044}␊
+ \`\`\`sh␊
+ ls example {MD014}␊
+ \`\`\`␊
+ `,
+ }
+
+## code_block_fenced.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Expected: fenced; Actual: indented',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ ruleNames: [
+ 'MD046',
+ 'code-block-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: fenced; Actual: indented',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 16,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ ruleNames: [
+ 'MD046',
+ 'code-block-style',
+ ],
+ },
+ ],
+ fixed: `# code_block_fenced␊
␊
- ![](image.jpg) {MD045}␊
+ This is text.␊
␊
- ## Heading 10 {MD022}␊
+ This is a {MD046}␊
+ code block.␊
␊
- Emphasis _with_ underscore style␊
+ And here is more text␊
␊
- Emphasis _with_ different style {MD049}␊
+ \`\`\`text␊
+ This is a code block that won't trigger.␊
+ \`\`\`␊
␊
- Strong __with__ underscore style␊
+ But we'll do another:␊
␊
- Strong __with__ different style {MD050}␊
+ And this {MD046}␊
+ will.␊
␊
- [Missing link fragment](#missing) {MD051}␊
+ Final text is here␊
␊
- [Missing link][label] {MD052}␊
+ ␊
+ `,
+ }
+
+## code_block_indented.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Expected: indented; Actual: fenced',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 10,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ ruleNames: [
+ 'MD046',
+ 'code-block-style',
+ ],
+ },
+ ],
+ fixed: `# code_block_indented␊
␊
- {MD053:100}␊
+ This is text.␊
␊
- [text](https://example.com/page) {MD054}␊
+ This is a␊
+ code block.␊
␊
- ␊
- [url]: https://example.com/page␊
+ And here is more text␊
␊
- | table | header |␊
- |--------|--------|␊
- {MD055} | cell |␊
+ \`\`\`text␊
+ This is {MD046:10} also a code block.␊
+ \`\`\`␊
␊
- | table | header |␊
- |---------|--------|␊
- | {MD056} |␊
+ But we'll do another:␊
␊
- Text␊
+ And this␊
+ will.␊
␊
- | table {MD058} |␊
- |-------|␊
- | cell {MD058} |␊
+ One last one:␊
␊
- > Blockquote␊
+ This is code␊
+ ␊
+ with an empty indented line.␊
␊
␊
- ␊
- EOF {MD047}␊
`,
}
-## bulleted_list_2_space_indent.md
+## code_fence_style_backtick.md
> Snapshot 1
@@ -7976,63 +8088,62 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 4; Actual: 2',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: {
- deleteCount: 0,
- editColumn: 1,
- insertText: ' ',
- },
+ errorDetail: 'Expected: backtick; Actual: tilde',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 7,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD048',
+ 'code-fence-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 8; Actual: 4',
- errorRange: [
- 1,
- 6,
- ],
- fixInfo: {
- deleteCount: 0,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 8,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ errorDetail: 'Expected: backtick; Actual: tilde',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD048',
+ 'code-fence-style',
],
},
],
- fixed: `# bulleted_list_2_space_indent␊
+ fixed: `# code_fence_style_backtick␊
␊
- This is a document where the lists are indented by 2 spaces, but the style is␊
- set to 4 space indents for lists:␊
+ \`\`\`text␊
+ This is a code block␊
+ \`\`\`␊
␊
- * Test X␊
- * Test Y {MD007}␊
- * Test Z {MD007}␊
+ ~~~text␊
+ This is {MD048:7} a code block␊
+ ~~~␊
+ ␊
+ \`\`\`text␊
+ ~~~␊
+ This is fine␊
+ ~~~␊
+ \`\`\`␊
+ ␊
+ ~~~text␊
+ \`\`\`␊
+ This is not {MD048:17}␊
+ \`\`\`␊
+ ~~~␊
␊
␊
`,
}
-## bulleted_list_4_space_indent.md
+## code_fence_style_tilde.md
> Snapshot 1
@@ -8040,54 +8151,62 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
- errorRange: [
- 1,
- 6,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
- },
- lineNumber: 4,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ errorDetail: 'Expected: tilde; Actual: backtick',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD048',
+ 'code-fence-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 4; Actual: 8',
- errorRange: [
- 1,
- 10,
- ],
- fixInfo: {
- deleteCount: 4,
- editColumn: 1,
- insertText: '',
- },
- lineNumber: 5,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ errorDetail: 'Expected: tilde; Actual: backtick',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD048',
+ 'code-fence-style',
],
},
],
- fixed: `# bulleted_list_4_space_indent␊
+ fixed: `# code_fence_style_tilde␊
␊
- * Test X␊
- * Test Y {MD007}␊
- * Test Z {MD007}␊
+ \`\`\`text␊
+ This is {MD048:3} a code block␊
+ \`\`\`␊
+ ␊
+ ~~~text␊
+ This is a code block␊
+ ~~~␊
+ ␊
+ \`\`\`text␊
+ ~~~␊
+ This is not fine {MD048:11}␊
+ ~~~␊
+ \`\`\`␊
+ ␊
+ ~~~text␊
+ \`\`\`␊
+ This is␊
+ \`\`\`␊
+ ~~~␊
+ ␊
+ ␊
`,
}
-## bulleted_list_not_at_beginning_of_line.md
+## consecutive_blank_lines.md
> Snapshot 1
@@ -8095,410 +8214,508 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
- },
- lineNumber: 15,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
- ruleNames: [
- 'MD007',
- 'ul-indent',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
- errorRange: [
- 1,
- 6,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
- },
- lineNumber: 16,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
- ruleNames: [
- 'MD007',
- 'ul-indent',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
- errorRange: [
- 1,
- 6,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
- },
- lineNumber: 17,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
- ruleNames: [
- 'MD007',
- 'ul-indent',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 4; Actual: 6',
- errorRange: [
- 1,
- 8,
- ],
+ errorDetail: 'Expected: 1; Actual: 2',
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ deleteCount: -1,
},
- lineNumber: 18,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 5,
+ ruleDescription: 'Multiple consecutive blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD012',
+ 'no-multiple-blanks',
],
},
- {
- errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
- errorRange: [
- 1,
- 6,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ ],
+ fixed: `# consecutive_blank_lines␊
+ ␊
+ Some text␊
+ ␊
+ Some text {MD012:5}␊
+ ␊
+ This is a code block␊
+ ␊
+ ␊
+ with two blank lines in it␊
+ ␊
+ Some more text␊
+ `,
+ }
+
+## consistent_bullet_styles_asterisk.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# consistent_bullet_styles_asterisk␊
+ ␊
+ * Item␊
+ * Item␊
+ * Item␊
+ `,
+ }
+
+## consistent_bullet_styles_dash.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# consistent_bullet_styles_dash␊
+ ␊
+ - Item␊
+ - Item␊
+ - Item␊
+ `,
+ }
+
+## consistent_bullet_styles_plus.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# consistent_bullet_styles_plus␊
+ ␊
+ + Item␊
+ + Item␊
+ + Item␊
+ `,
+ }
+
+## custom-rules.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ Sample text.␊
+ ␊
+ Sample text.␊
+ ␊
+ Sample text.␊
+ ␊
+ Sample text.␊
+ ␊
+ ␊
+ > Blockquote␊
+ `,
+ }
+
+## default-spaces-MD010.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Column: 1',
+ errorRange: [
+ 1,
+ 13,
+ ],
+ fixInfo: {
+ deleteCount: 13,
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 19,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 1,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Column: 5',
errorRange: [
- 1,
- 4,
+ 5,
+ 2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 20,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 2,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Column: 35',
+ errorRange: [
+ 35,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 35,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ ruleNames: [
+ 'MD010',
+ 'no-hard-tabs',
+ ],
+ },
+ ],
+ fixed: ` text {MD010}␊
+ text and text 2 {MD010}␊
+ texts with trailing spaces {MD010} ␊
+ ␊
+ ␊
+ `,
+ }
+
+## emoji-headings.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '##️⃣ Keycap Number Sign {MD018...',
+ errorDetail: null,
errorRange: [
1,
- 4,
+ 3,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ editColumn: 3,
+ insertText: ' ',
},
- lineNumber: 21,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 11,
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
+ ],
+ fixed: `# Emoji Headings␊
+ ␊
+ #️⃣ Keycap Number Sign␊
+ ␊
+ ␊
+ ␊
+ # #️⃣ Keycap Number Sign␊
+ ␊
+ Text␊
+ ␊
+ ## ️⃣ Keycap Number Sign {MD018}␊
+ ␊
+ Text␊
+ ␊
+ # Keycap Number Sign #️⃣␊
+ ␊
+ Text␊
+ ␊
+ # Keycap Number Sign#️⃣␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## emphasis-markers.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 9,
1,
- 4,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 9,
+ insertText: '_',
},
- lineNumber: 30,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 5,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 13,
1,
- 6,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 13,
+ insertText: '_',
},
- lineNumber: 31,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 5,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 7,
1,
- 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: '',
+ editColumn: 7,
+ insertText: '_',
},
- lineNumber: 41,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 8,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 11,
1,
- 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: '',
+ editColumn: 11,
+ insertText: '_',
},
- lineNumber: 42,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 8,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 7,
1,
- 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: '',
+ editColumn: 7,
+ insertText: '_',
},
- lineNumber: 43,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 12,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 11,
1,
- 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 11,
+ insertText: '_',
+ },
+ lineNumber: 12,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleNames: [
+ 'MD049',
+ 'emphasis-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorRange: [
+ 9,
+ 2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ editColumn: 9,
+ insertText: '**',
},
- lineNumber: 55,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 14,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD050',
+ 'strong-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
- 4,
+ 14,
+ 2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ editColumn: 14,
+ insertText: '**',
},
- lineNumber: 57,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 14,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD050',
+ 'strong-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 2',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
- 4,
+ 7,
+ 2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ editColumn: 7,
+ insertText: '**',
},
- lineNumber: 59,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 17,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD050',
+ 'strong-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorRange: [
+ 12,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 12,
+ insertText: '**',
+ },
+ lineNumber: 17,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ ruleNames: [
+ 'MD050',
+ 'strong-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorRange: [
+ 7,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 7,
+ insertText: '**',
+ },
+ lineNumber: 21,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ ruleNames: [
+ 'MD050',
+ 'strong-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorRange: [
+ 12,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 12,
+ insertText: '**',
+ },
+ lineNumber: 21,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ ruleNames: [
+ 'MD050',
+ 'strong-style',
],
},
],
- fixed: `# Bulleted List Not at Beginning of Line␊
- ␊
- Text␊
- ␊
- * Item␊
- * Item␊
- * Item␊
- * Item␊
- * Item␊
- * Item␊
- * Item␊
- ␊
- Text␊
- ␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
- ␊
- Text␊
- ␊
- * Item␊
- * Item␊
- ␊
- Text␊
- ␊
- * Item {MD007}␊
- * Item {MD007}␊
+ fixed: `# Emphasis Markers␊
␊
- Text␊
+ Text to _set_ the **preferences**.␊
␊
- * Item␊
- * Item␊
- * Item␊
+ This is _bad_ {MD049}␊
␊
- Text␊
+ This \`is␊
+ also\` _bad_ {MD049}␊
␊
- * Item {MD007}␊
- * Item {MD007}␊
- * Item {MD007}␊
+ This \`is␊
+ also␊
+ very\` _bad_ {MD049}␊
␊
- Text␊
+ This is **bad** {MD050}␊
␊
- * Item␊
+ This \`is␊
+ also\` **bad** {MD050}␊
␊
- * Item␊
+ This \`is␊
+ also␊
+ very\` **bad** {MD050}␊
␊
- * Item␊
+ HTML __should__ *be* ignored
␊
␊
- Text␊
+ ␊
+ HTML __should__ *be* ignored␊
+
␊
␊
- * Item {MD007}␊
- ␊
- * Item {MD007}␊
- ␊
- * Item {MD007}␊
- `,
- }
-
-## byte-order-marker-utf8.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
- ␊
- Text␊
- `,
- }
-
-## code-block-in-list.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Code Block in List␊
- ␊
- Text␊
- ␊
- \`\`\`js␊
- // Code␊
- \`\`\`␊
- ␊
- Text␊
- ␊
- 1. Item␊
- ␊
- \`\`\`js␊
- // Code␊
- \`\`\`␊
- ␊
- 1. Item␊
- ␊
- \`\`\`js␊
- // Code␊
- \`\`\`␊
+ ␊
`,
}
-## code-block-trailing-spaces.md
+## emphasis-not-heading-in-blockquote.md
> Snapshot 1
@@ -8506,176 +8723,308 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 28,
- 2,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 28,
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '_',
},
- lineNumber: 5,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD049',
+ 'emphasis-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 8,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 8,
+ insertText: '_',
+ },
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleNames: [
+ 'MD049',
+ 'emphasis-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 3,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '_',
+ },
+ lineNumber: 15,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleNames: [
+ 'MD049',
+ 'emphasis-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorRange: [
+ 18,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 18,
+ insertText: '_',
+ },
+ lineNumber: 15,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleNames: [
+ 'MD049',
+ 'emphasis-style',
],
},
],
- fixed: `# code-block-trailing-spaces␊
- ␊
- Text␊
+ fixed: `# Heading␊
␊
- Two trailing spaces {MD009}␊
+ > _Text_␊
␊
Text␊
␊
- Indented code block␊
+ > _Text text text_␊
␊
- Statement␊
- Indented statement␊
- ␊
- Statement␊
- Indented statement␊
+ Text␊
␊
- Two trailing spaces ␊
+ > _Text_ {MD049}␊
␊
Text␊
␊
- \`\`\`text␊
- Fenced code block␊
+ > _Text text text_ {MD049}␊
␊
- Statement␊
- Indented statement␊
- ␊
- Statement␊
- Indented statement␊
+ Text␊
␊
- Two trailing spaces ␊
- \`\`\`␊
+ > **Text**␊
␊
Text␊
␊
- ␊
+ > **Text text text**␊
`,
}
-## code-block-with-language-allowed.md
+## emphasis_instead_of_headings.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Column: 1',
- errorRange: [
- 1,
- 1,
+ errorContext: 'Section 1: the first section {...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Emphasis used instead of a heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ ruleNames: [
+ 'MD036',
+ 'no-emphasis-as-heading',
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 34,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ },
+ {
+ errorContext: 'Section 1.1: another section {...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 12,
+ ruleDescription: 'Emphasis used instead of a heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD036',
+ 'no-emphasis-as-heading',
+ ],
+ },
+ {
+ errorContext: 'Section 2: yet more sections {...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Emphasis used instead of a heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ ruleNames: [
+ 'MD036',
+ 'no-emphasis-as-heading',
+ ],
+ },
+ {
+ errorContext: 'Section 3: oh no more sections...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 30,
+ ruleDescription: 'Emphasis used instead of a heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ ruleNames: [
+ 'MD036',
+ 'no-emphasis-as-heading',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
1,
- 2,
+ 1,
],
fixInfo: {
- deleteCount: 2,
+ deleteCount: 1,
editColumn: 1,
- insertText: ' ',
+ insertText: '*',
},
- lineNumber: 35,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 30,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
+ 48,
1,
- 2,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 48,
+ insertText: '*',
},
- lineNumber: 36,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 30,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
1,
- 3,
+ 2,
],
fixInfo: {
- deleteCount: 3,
+ deleteCount: 2,
editColumn: 1,
- insertText: ' ',
+ insertText: '**',
},
- lineNumber: 37,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 12,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD050',
+ 'strong-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
+ 47,
2,
],
fixInfo: {
deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 47,
+ insertText: '**',
},
- lineNumber: 38,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 12,
+ ruleDescription: 'Strong style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD050',
+ 'strong-style',
],
},
+ ],
+ fixed: `# emphasis_instead_of_headings␊
+ ␊
+ **Section 1: the first section {MD036}**␊
+ ␊
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
+ nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
+ eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
+ in culpa qui officia deserunt mollit anim id est laborum.␊
+ ␊
+ **Section 1.1: another section {MD036} {MD050}**␊
+ ␊
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
+ nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
+ eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
+ in culpa qui officia deserunt mollit anim id est laborum.␊
+ ␊
+ *Section 2: yet more sections {MD036}*␊
+ ␊
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
+ nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
+ eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
+ in culpa qui officia deserunt mollit anim id est laborum.␊
+ ␊
+ *Section 3: oh no more sections {MD036} {MD049}*␊
+ ␊
+ This is a normal paragraph␊
+ **that just happens to have emphasized text in**␊
+ even though the emphasized text is on its own line.␊
+ ␊
+ This is another **normal** paragraph with some text in it. This also should␊
+ not trigger the rule.␊
+ ␊
+ **This is an entire paragraph that has been emphasized, and shouldn't be␊
+ detected as a heading because it's on multiple lines**␊
+ ␊
+ **This also shouldn't be detected as a heading as it ends in punctuation.**␊
+ ␊
+ **This shouldn't be detected as a heading as it ends in full-width punctuation。**␊
+ ␊
+ **[This as well since it is a link](https://example.com)**␊
+ `,
+ }
+
+## emphasis_style_asterisk.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
1,
1,
@@ -8683,181 +9032,147 @@ Generated by [AVA](https://avajs.dev).
fixInfo: {
deleteCount: 1,
editColumn: 1,
- insertText: ' ',
+ insertText: '*',
},
- lineNumber: 39,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 9,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 10',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 10,
+ 6,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
- insertText: ' ',
+ editColumn: 6,
+ insertText: '*',
},
- lineNumber: 41,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 9,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
+ 6,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 6,
+ insertText: '*',
},
- lineNumber: 45,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
+ 9,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 9,
+ insertText: '*',
},
- lineNumber: 46,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
+ 9,
1,
- 2,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 9,
+ insertText: '*',
},
- lineNumber: 47,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 13,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: asterisk; Actual: underscore',
errorRange: [
- 1,
+ 13,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 13,
+ insertText: '*',
},
- lineNumber: 48,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 13,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
],
- fixed: `# Heading␊
+ fixed: `# Emphasis style asterisk␊
␊
- \`\`\`js␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- \`\`\`␊
+ *This* is fine␊
␊
- \`\`\`js␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- \`\`\`␊
+ This *is* fine␊
␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
+ This is *fine*␊
␊
- \`\`\`text␊
- hello␊
- world␊
- }␊
- \`\`\`␊
+ *This* is not␊
␊
- if (true) { // {MD010}␊
- console.log("true"); // {MD010}␊
- if (false) { // {MD010}␊
- console.log("false"); // {MD010}␊
- } // {MD010}␊
- } // {MD010}␊
+ This *is* not␊
␊
- Line with hard tab. {MD010}␊
+ This is *not*␊
␊
- \`\`\`javascript␊
- if (true) {␊
- console.log("true"); // {MD010}␊
- if (false) { // {MD010}␊
- console.log("false"); // {MD010}␊
- } // {MD010}␊
- }␊
- \`\`\`␊
+ {MD049:-2} {MD049:-4} {MD049:-6}␊
+ ␊
+ Internal emphasis is preserved:␊
+ apple*banana*cherry, apple*banana*, *banana*cherry␊
+ apple_banana_cherry, apple_banana_, _banana_cherry␊
␊
␊
`,
}
-## code-block-with-tabs-allowed.md
+## emphasis_style_underscore.md
> Snapshot 1
@@ -8865,1069 +9180,797 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Column: 10',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 10,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
- insertText: ' ',
+ editColumn: 1,
+ insertText: '_',
},
- lineNumber: 35,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
- errorRange: null,
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 9,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD049',
+ 'emphasis-style',
],
},
- ],
- fixed: `# Heading␊
- ␊
- \`\`\`js␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- \`\`\`␊
- ␊
- \`\`\`js␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- \`\`\`␊
- ␊
- if (true) { // {MD046}␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- ␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- ␊
- Line with hard tab. {MD010}␊
- ␊
- ␊
- `,
- }
-
-## code-block-with-tabs.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 1,
+ 6,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 6,
+ insertText: '_',
},
- lineNumber: 14,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 9,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 1,
+ 6,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 6,
+ insertText: '_',
},
- lineNumber: 15,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
+ 9,
1,
- 2,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 9,
+ insertText: '_',
},
- lineNumber: 16,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 11,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 1,
+ 9,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 9,
+ insertText: '_',
},
- lineNumber: 17,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 13,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: underscore; Actual: asterisk',
errorRange: [
- 1,
+ 13,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
+ editColumn: 13,
+ insertText: '_',
},
- lineNumber: 28,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 13,
+ ruleDescription: 'Emphasis style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD049',
+ 'emphasis-style',
],
},
+ ],
+ fixed: `# Emphasis style underscore␊
+ ␊
+ _This_ is fine␊
+ ␊
+ This _is_ fine␊
+ ␊
+ This is _fine_␊
+ ␊
+ _This_ is not␊
+ ␊
+ This _is_ not␊
+ ␊
+ This is _not_␊
+ ␊
+ {MD049:-2} {MD049:-4} {MD049:-6}␊
+ ␊
+ Internal emphasis is preserved:␊
+ apple*banana*cherry, apple*banana*, *banana*cherry␊
+ apple_banana_cherry, apple_banana_, _banana_cherry␊
+ ␊
+ ␊
+ `,
+ }
+
+## empty-links.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Column: 1',
+ errorContext: '[text]()',
+ errorDetail: null,
errorRange: [
1,
- 2,
+ 8,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 29,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 1',
+ errorContext: '[text](<>)',
+ errorDetail: null,
errorRange: [
1,
- 2,
+ 10,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 30,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 1',
+ errorContext: '[text]( <> )',
+ errorDetail: null,
errorRange: [
1,
- 3,
+ 12,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 31,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 1',
+ errorContext: '[text](<> "title")',
+ errorDetail: null,
errorRange: [
1,
- 2,
+ 18,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 32,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 1',
+ errorContext: '[text]( <> "title" )',
+ errorDetail: null,
errorRange: [
1,
- 1,
+ 20,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 33,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 13,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 10',
+ errorContext: '[text](#)',
+ errorDetail: null,
errorRange: [
- 10,
1,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 10,
- insertText: ' ',
- },
- lineNumber: 35,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
- errorRange: null,
+ errorContext: '[text]( # )',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 11,
+ ],
fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 17,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD042',
+ 'no-empty-links',
],
},
- ],
- fixed: `# Heading␊
- ␊
- \`\`\`js␊
- if (true) {␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- \`\`\`␊
- ␊
- \`\`\`js␊
- if (true) {␊
- console.log("true"); // {MD010}␊
- if (false) { // {MD010}␊
- console.log("false"); // {MD010}␊
- } // {MD010}␊
- }␊
- \`\`\`␊
- ␊
- if (true) { // {MD046}␊
- console.log("true");␊
- if (false) {␊
- console.log("false");␊
- }␊
- }␊
- ␊
- if (true) { // {MD010}␊
- console.log("true"); // {MD010}␊
- if (false) { // {MD010}␊
- console.log("false"); // {MD010}␊
- } // {MD010}␊
- } // {MD010}␊
- ␊
- Line with hard tab. {MD010}␊
- `,
- }
-
-## code-blocks-and-spans.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: code; Actual: Code',
+ errorContext: '[text](# "title")',
+ errorDetail: null,
errorRange: [
- 3,
- 4,
+ 1,
+ 17,
],
- fixInfo: {
- deleteCount: 4,
- editColumn: 3,
- insertText: 'code',
- },
- lineNumber: 1,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: code; Actual: CODE',
+ errorContext: '[text]( # "title" )',
+ errorDetail: null,
errorRange: [
- 6,
- 4,
+ 1,
+ 19,
],
- fixInfo: {
- deleteCount: 4,
- editColumn: 6,
- insertText: 'code',
- },
- lineNumber: 3,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: code; Actual: CODE',
+ errorContext: '[text][frag]',
+ errorDetail: null,
errorRange: [
- 7,
- 4,
+ 1,
+ 12,
],
- fixInfo: {
- deleteCount: 4,
- editColumn: 7,
- insertText: 'code',
- },
- lineNumber: 26,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: code; Actual: CODE',
+ errorContext: '[text][ frag ]',
+ errorDetail: null,
errorRange: [
- 7,
- 4,
+ 1,
+ 14,
],
- fixInfo: {
- deleteCount: 4,
- editColumn: 7,
- insertText: 'code',
- },
- lineNumber: 28,
- ruleDescription: 'Proper names should have the correct capitalization',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md044.md',
+ fixInfo: null,
+ lineNumber: 25,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD044',
- 'proper-names',
+ 'MD042',
+ 'no-empty-links',
],
},
- ],
- fixed: `# code Blocks and Spans {MD044}␊
- ␊
- Text code text {MD044}␊
- ␊
- Text \`CODE\` text␊
- ␊
- \`\`\`lang␊
- CODE␊
- ␊
- CODE␊
- \`\`\`␊
- ␊
- \`CODE\` text \`CODE\`␊
- ␊
- CODE␊
- ␊
- CODE␊
- ␊
- Text \`CODE␊
- CODE\` text␊
- text text␊
- text \`CODE␊
- CODE CODE␊
- CODE\` text␊
- ␊
- Text \`code {MD044}␊
- ␊
- Text \`code {MD044}␊
- ␊
- ␊
- `,
- }
-
-## code-blocks-prefixed-by-spaces.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: 80; Actual: 98',
+ errorContext: '[frag][]',
+ errorDetail: null,
errorRange: [
- 81,
- 18,
+ 1,
+ 8,
],
fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ lineNumber: 27,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD013',
- 'line-length',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 80; Actual: 98',
+ errorContext: '[frag]',
+ errorDetail: null,
errorRange: [
- 81,
- 18,
+ 1,
+ 6,
],
fixInfo: null,
- lineNumber: 25,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ lineNumber: 29,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD013',
- 'line-length',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: 80; Actual: 98',
+ errorContext: '[text]()',
+ errorDetail: null,
errorRange: [
- 81,
- 18,
+ 1,
+ 8,
],
fixInfo: null,
- lineNumber: 39,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
+ lineNumber: 74,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD013',
- 'line-length',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
- errorRange: null,
+ errorContext: '[text]()',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 8,
+ ],
fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 78,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD042',
+ 'no-empty-links',
],
},
- ],
- fixed: `# md013-code-blocks-spaces␊
- ␊
- Text text text text text text text text text text text text text text text text text text. {MD013}␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text. {MD046:21}␊
- \`\`\`␊
- ␊
- Text text text text text text text text text text text text text text text text text text. {MD013}␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- \`\`\`text␊
- Text text text text text text text text text text text text text text text text text text.␊
- \`\`\`␊
- ␊
- Text text text text text text text text text text text text text text text text text text. {MD013}␊
- ␊
- ␊
- `,
- }
-
-## code-fences-in-blockquotes.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '```markdown',
+ errorContext: '[text]()',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 4,
- },
- lineNumber: 4,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 1,
+ 8,
],
- },
- {
- errorContext: '```',
- errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 7,
- },
- lineNumber: 6,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 80,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: '> ```markdown',
+ errorContext: '[text]()',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 10,
- },
- lineNumber: 10,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 1,
+ 8,
],
- },
- {
- errorContext: '> ```',
- errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `>␊
- `,
- lineNumber: 13,
- },
- lineNumber: 12,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 83,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD042',
+ 'no-empty-links',
],
},
{
- errorContext: '> > ```markdown',
+ errorContext: '[text]()',
errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 15,
- },
- lineNumber: 15,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
- ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ errorRange: [
+ 1,
+ 8,
],
- },
- {
- errorContext: '> > ```',
- errorDetail: null,
- errorRange: null,
- fixInfo: {
- insertText: `> >␊
- `,
- lineNumber: 18,
- },
- lineNumber: 17,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 85,
+ ruleDescription: 'No empty links',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD042',
+ 'no-empty-links',
],
},
],
- fixed: `# Detailed Results Code Fences in Blockquotes␊
+ fixed: `# Heading␊
␊
- Text␊
+ ## Empty links␊
␊
- \`\`\`markdown␊
- Text␊
- \`\`\`␊
+ [text]() {MD042}␊
␊
- Text␊
+ [text](<>) {MD042}␊
␊
- > Text␊
- >␊
- > \`\`\`markdown␊
- > Text␊
- > \`\`\`␊
- >␊
- > Text␊
- > > Text␊
- > >␊
- > > \`\`\`markdown␊
- > > Text␊
- > > \`\`\`␊
- > >␊
- > > Text␊
+ [text]( <> ) {MD042}␊
␊
- {MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}␊
- `,
- }
-
-## code-with-tabs-allowed.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Column: 5',
- errorRange: [
- 5,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 3,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 5',
- errorRange: [
- 5,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 21,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- ],
- fixed: `# Code With Tabs Allowed␊
+ [text](<> "title") {MD042}␊
␊
- Text text {MD010}␊
+ [text]( <> "title" ) {MD042}␊
␊
- Text \`code code\` text␊
+ [text](#) {MD042}␊
␊
- Text \` code\` text␊
+ [text]( # ) {MD042}␊
␊
- Text \`code \` text␊
+ [text](# "title") {MD042}␊
␊
- Text \`code code␊
- code code␊
- code code\` text␊
+ [text]( # "title" ) {MD042}␊
␊
- console.log(" ");␊
+ [text][frag] {MD042}␊
␊
- \`\`\`js␊
- console.log(" ");␊
- \`\`\`␊
+ [text][ frag ] {MD042}␊
␊
- \`\`\`j s {MD010}␊
- console.log(" ");␊
- \`\`\`␊
+ [frag][] {MD042}␊
␊
- console.log("");␊
+ [frag] {MD042}␊
␊
- ␊
+ [frag]: #␊
+ ␊
+ ## Non-empty links␊
+ ␊
+ ### frag␊
+ ␊
+ [text](link)␊
+ ␊
+ [text]( link )␊
+ ␊
+ [text](link "title")␊
+ ␊
+ [text]( link "title" )␊
+ ␊
+ [text]()␊
+ ␊
+ [text]( )␊
+ ␊
+ [text]( "title")␊
+ ␊
+ [text]( "title" )␊
+ ␊
+ [text](#frag)␊
+ ␊
+ [text]( #frag )␊
+ ␊
+ [text](#frag "title")␊
+ ␊
+ [text]( #frag "title" )␊
+ ␊
+ [text][ref]␊
+ ␊
+ [text][ ref ]␊
+ ␊
+ [ref]: link␊
+ ␊
+ [text]␊
+ ␊
+ [text]: link␊
+ ␊
+ ## Inline of links with empty link (#308)␊
+ ␊
+ [text](link-1)␊
+ [text]() {MD042}␊
+ [text](link-3)␊
+ ␊
+ [text](link-1)␊
+ [text]() {MD042}␊
+ [text](link-3)␊
+ [text]() {MD042}␊
+ ␊
+ [text](link-1)␊
+ [text]() {MD042}␊
+ [text](link-3)␊
+ [text]() {MD042}␊
+ [text](link-5)␊
`,
}
-## code-with-tabs-blocked.md
+## empty_doc.md
> Snapshot 1
{
- errors: [
- {
- errorContext: null,
- errorDetail: 'Column: 5',
- errorRange: [
- 5,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 3,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 11',
- errorRange: [
- 11,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 11,
- insertText: ' ',
- },
- lineNumber: 5,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 7',
- errorRange: [
- 7,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 7,
- insertText: ' ',
- },
- lineNumber: 7,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 11',
- errorRange: [
- 11,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 11,
- insertText: ' ',
- },
- lineNumber: 9,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
+ errors: [],
+ fixed: '',
+ }
+
+## escaped-emphasis-markers.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ ## Single-character markers␊
+ ␊
+ None are valid emphasis without spaces.␊
+ ␊
+ Escaped asterisks \\* should \\* be ignored by MD037.␊
+ ␊
+ Escaped asterisks \\* should * be ignored by MD037.␊
+ ␊
+ Escaped asterisks * should \\* be ignored by MD037.␊
+ ␊
+ Escaped underscores \\_ should \\_ be ignored by MD037.␊
+ ␊
+ Escaped underscores \\_ should _ be ignored by MD037.␊
+ ␊
+ Escaped underscores _ should \\_ be ignored by MD037.␊
+ ␊
+ ## Double-character markers, start␊
+ ␊
+ All *could* be reported because they are valid single-character␊
+ marker emphasis when no spaces are present.␊
+ ␊
+ Escaped asterisks \\** should ** be ignored by MD037.␊
+ ␊
+ Escaped asterisks *\\* should ** be ignored by MD037.␊
+ ␊
+ Escaped underscores \\__ should __ be ignored by MD037.␊
+ ␊
+ Escaped underscores _\\_ should __ be ignored by MD037.␊
+ ␊
+ ## Double-character markers, end␊
+ ␊
+ All should be reported, but are ignored because they look like␊
+ the start of an embedded emphasis.␊
+ ␊
+ Escaped asterisks ** should \\** be ignored by MD037.␊
+ ␊
+ Escaped asterisks ** should *\\* be ignored by MD037.␊
+ ␊
+ Escaped underscores __ should \\__ be ignored by MD037.␊
+ ␊
+ Escaped underscores __ should _\\_ be ignored by MD037.␊
+ `,
+ }
+
+## every-markdown-syntax.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `Every Markdown Syntax␊
+ =====================␊
+ ␊
+ ## Level 2 ATX Heading␊
+ ␊
+ ### Level 3 Closed ATX Heading ###␊
+ ␊
+ ---␊
+ ␊
+ Text *emphasized* **strong** ___emphasized+strong___.␊
+ Text \`code\` html .␊
+ Text [link](https://example.com/page) [link][] [link] ![image][link].␊
+ Text https://example.com/page.␊
+ ␊
+ Hard ␊
+ line break␊
+ ␊
+ [link]: https://example.com/page "Title"␊
+ ␊
+ > Block quote␊
+ > > Nested␊
+ ␊
+ - Unordered␊
+ - List␊
+ - Items␊
+ Indented␊
+ ␊
+ Content␊
+ ␊
+ 1. Ordered␊
+ 2. List␊
+ 1. Items␊
+ Indented␊
+ ␊
+ Content␊
+ ␊
+ \`\`\`markdown options␊
+ Fenced code block␊
+ \`\`\`␊
+ ␊
+ Indented code block␊
+ ␊
+ ␊
+ HTML block␊
+
␊
+ ␊
+ | Table | Heading |␊
+ | ----- | ------- |␊
+ | Table | Cell |␊
+ ␊
+ ␊
+ `,
+ }
+
+## fenced-code-in-list.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ - Item␊
+ ␊
+ \`\`\`javascript␊
+ debugger;␊
+ ␊
+ ␊
+ debugger;␊
+ \`\`\`␊
+ ␊
+ text␊
+ ␊
+ - Item␊
+ ␊
+ - Subitem␊
+ ␊
+ \`\`\`javascript␊
+ debugger;␊
+ ␊
+ ␊
+ debugger;␊
+ \`\`\`␊
+ ␊
+ text␊
+ ␊
+ - Subitem␊
+ ␊
+ - Item␊
+ ␊
+ - Subitem␊
+ ␊
+ \`\`\`javascript␊
+ debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;␊
+ \`\`\`␊
+ ␊
+ ␊
+ `,
+ }
+
+## fenced-code-unmatched.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading␊
+ ␊
+ Text␊
+ ␊
+ \`\`\`code\`\`\`␊
+ ␊
+ Text␊
+ ␊
+ \`\`\`javascript␊
+ var x = 5;␊
+ \`\`\`␊
+ ␊
+ Text␊
+ `,
+ }
+
+## fenced_code_blocks.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Column: 5',
- errorRange: [
- 5,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 12,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ errorContext: '```',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 25,
+ ruleDescription: 'Fenced code blocks should have a language specified',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD040',
+ 'fenced-code-language',
],
},
{
errorContext: null,
- errorDetail: 'Column: 18',
- errorRange: [
- 18,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 18,
- insertText: ' ',
- },
+ errorDetail: 'Expected: backtick; Actual: tilde',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 15,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 14',
- errorRange: [
- 14,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 14,
- insertText: ' ',
- },
- lineNumber: 18,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 5',
- errorRange: [
- 5,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 21,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 14',
- errorRange: [
- 14,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 14,
- insertText: ' ',
- },
- lineNumber: 22,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Column: 1',
- errorRange: [
- 1,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 25,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD048',
+ 'code-fence-style',
],
},
],
- fixed: `# Code With Tabs Blocked␊
+ fixed: `# fenced_code_blocks␊
␊
- Text text {MD010}␊
+ This is a GFM-style fenced code block:␊
␊
- Text \`code code\` text {MD010}␊
+ \`\`\` bash␊
+ #!/bin/bash␊
␊
- Text \` code\` text {MD010}␊
+ # Print something to stdout:␊
+ echo "Hello"␊
+ echo "World"␊
+ \`\`\`␊
␊
- Text \`code \` text {MD010}␊
+ This is a kramdown-style fenced code block:␊
␊
- Text \`code code␊
- code code {MD010}␊
- code code\` text␊
+ ~~~ bash␊
+ #!/bin/bash␊
␊
- console.log(" "); // {MD010}␊
+ # Print something to stdout:␊
+ echo "Hello"␊
+ echo "World"␊
+ ~~~␊
␊
- \`\`\`js␊
- console.log(" "); // {MD010}␊
- \`\`\`␊
+ None of the above should trigger any heading related rules.␊
␊
- \`\`\`j s {MD010}␊
- console.log(" "); // {MD010}␊
+ \`\`\`␊
+ Code block without a language specifier␊
\`\`\`␊
␊
- console.log(""); // {MD010}␊
- ␊
- ␊
+ {MD040:25} {MD048:15}␊
`,
}
-## code_block_consistency.md
+## fenced_code_blocks_in_lists.md
> Snapshot 1
@@ -9935,10 +9978,23 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
+ errorDetail: 'Expected: fenced; Actual: indented',
errorRange: null,
fixInfo: null,
- lineNumber: 10,
+ lineNumber: 17,
+ ruleDescription: 'Code block style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ ruleNames: [
+ 'MD046',
+ 'code-block-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: fenced; Actual: indented',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 23,
ruleDescription: 'Code block style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
ruleNames: [
@@ -9947,621 +10003,631 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `# code_block_consistency␊
+ fixed: `# test doc␊
␊
- This is text.␊
+ this is some text␊
␊
- This is a␊
- code block.␊
+ * This is a list item␊
␊
- And here is more text␊
+ \`\`\`fenced␊
+ this is a code block within the list item.␊
+ \`\`\`␊
+ ␊
+ with more text here␊
+ ␊
+ * and another list item here␊
+ ␊
+ And another paragraph.␊
+ ␊
+ But this code block {MD046}␊
+ ␊
+ is *NOT* in a list and should error.␊
+ ␊
+ And in addition to that...␊
+ ␊
+ \`\`\`text␊
+ This code block is both indented␊
+ and fenced and should *also* error.␊
+ \`\`\`␊
+ ␊
+ And finally:␊
␊
\`\`\`text␊
- and here is a different {MD046:10}␊
- code block␊
+ This is a code block␊
+ ␊
+ And this is a code block in a code block and should *not* error␊
+ ␊
+ More stuff here␊
\`\`\`␊
+ ␊
+ all␊
+ ␊
+ {MD046:23}␊
`,
}
-## code_block_dollar.md
+## fenced_code_without_blank_lines.md
> Snapshot 1
{
errors: [
{
- errorContext: '$ ls {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
+ insertText: `␊
+ `,
+ lineNumber: 12,
},
- lineNumber: 5,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 12,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ less foo {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
+ insertText: `␊
+ `,
+ lineNumber: 15,
},
- lineNumber: 6,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 14,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ cat bar {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
- },
- lineNumber: 8,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
- ruleNames: [
- 'MD014',
- 'commands-show-output',
- ],
- },
- {
- errorContext: '$ mkdir test {MD014}',
- errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 5,
- },
- lineNumber: 74,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
- ruleNames: [
- 'MD014',
- 'commands-show-output',
- ],
- },
- {
- errorContext: '$ cd test {MD014}',
- errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 5,
+ insertText: `␊
+ `,
+ lineNumber: 20,
},
- lineNumber: 75,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 19,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ ls test {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 5,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
+ insertText: `␊
+ `,
+ lineNumber: 23,
},
- lineNumber: 76,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 23,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: ' $ ls example {MD014}',
+ errorContext: null,
errorDetail: null,
errorRange: [
- 6,
- 2,
+ 3,
+ 1,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 6,
+ editColumn: 4,
+ insertText: `␊
+ `,
},
- lineNumber: 80,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
- ruleNames: [
- 'MD014',
- 'commands-show-output',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
- errorRange: null,
- fixInfo: null,
- lineNumber: 34,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 47,
+ ruleDescription: 'Files should end with a single newline character',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD047',
+ 'single-trailing-newline',
],
},
],
- fixed: `# Code Block Dollar␊
- ␊
- The following code block shouldn't have $ before the commands:␊
- ␊
- ls {MD014}␊
- less foo {MD014}␊
- ␊
- cat bar {MD014}␊
- ␊
- However the following code block shows output, and $ can be used to␊
- distinguish between command and output:␊
- ␊
- $ ls␊
- foo bar␊
- $ less foo␊
- Hello world␊
- ␊
- $ cat bar␊
- baz␊
- ␊
- The following code block uses variable names, and likewise shouldn't fire:␊
- ␊
- $foo = 'bar';␊
- $baz = 'qux';␊
- ␊
- The following code block doesn't have any dollar signs, and shouldn't fire:␊
- ␊
- ls foo␊
- cat bar␊
- ␊
- The following (fenced) code block doesn't have any content at all, and␊
- shouldn't fire: {MD046:34}␊
- ␊
- \`\`\`bash␊
+ fixed: `\`\`\`␊
+ code at start of file␊
\`\`\`␊
␊
- Mixed content:␊
- ␊
- $ ls␊
- file.md other.md␊
- $ git branch␊
- $ cat stuff␊
- ␊
- output␊
- ␊
- More mixed content:␊
- ␊
- $ ls␊
- $ git branch␊
- $ cat stuff␊
- stuff here␊
- more stuff␊
- $ tail cat␊
- meow␊
- ␊
- Command with blank lines in output:␊
+ text␊
␊
- $ dig example.com␊
+ \`\`\`ruby␊
+ code␊
+ \`\`\`␊
␊
- ; ...␊
- ;; ...␊
+ text␊
␊
- ;; ...␊
+ \`\`\`␊
+ code␊
+ \`\`\`␊
␊
- Some commands with no output:␊
+ text {MD031:12} {MD031:14}␊
␊
- $ mkdir test␊
- mkdir: created directory 'test'␊
- $ cd test␊
- $ ls test␊
+ \`\`\`␊
+ code␊
+ \`\`\`␊
␊
- All commands with no output:␊
+ text {MD031:19}␊
␊
- mkdir test {MD014}␊
- cd test {MD014}␊
- ls test {MD014}␊
+ text {MD031:23}␊
␊
- Space-prefixed command with no output:␊
+ \`\`\`␊
+ code␊
+ \`\`\`␊
␊
- ls example {MD014}␊
- `,
- }
-
-## code_block_dollar_fence-empty.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
+ text␊
␊
\`\`\`js␊
- ␊
+ code␊
+ code␊
+ code␊
\`\`\`␊
␊
- \`\`\`css␊
- ␊
- ␊
+ \`\`\`html␊
\`\`\`␊
␊
- \`\`\`spaces␊
- ␊
- \`\`\`␊
+ text␊
␊
␊
+ ␊
+ \`\`\`␊
+ code at end of file without newline {MD047:47}␊
+ \`\`\`␊
`,
}
-## code_block_dollar_fence.md
+## fenced_code_with_nesting.md
> Snapshot 1
{
errors: [
{
- errorContext: '$ code {MD014}',
+ errorContext: '```fence',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 4,
},
lineNumber: 4,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ code {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 7,
},
- lineNumber: 10,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 6,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ code {MD014}',
+ errorContext: '~~~fence',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 8,
},
- lineNumber: 16,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 8,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ code {MD014}',
+ errorContext: '~~~',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 11,
},
- lineNumber: 17,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 10,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ code {MD014}',
+ errorContext: '```fence',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 12,
},
- lineNumber: 23,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 12,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ code {MD014}',
+ errorContext: '```',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 17,
},
- lineNumber: 24,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 16,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: '$ npm install --save multimatc...',
+ errorContext: '~~~fence',
errorDetail: null,
- errorRange: [
- 1,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
+ insertText: `␊
+ `,
+ lineNumber: 18,
},
- lineNumber: 40,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 18,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: ' $ ls example {MD014}',
+ errorContext: '~~~',
errorDetail: null,
- errorRange: [
- 2,
- 2,
- ],
+ errorRange: null,
fixInfo: {
- deleteCount: 2,
- editColumn: 2,
+ insertText: `␊
+ `,
+ lineNumber: 23,
},
- lineNumber: 46,
- ruleDescription: 'Dollar signs used before commands without showing output',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md014.md',
+ lineNumber: 22,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD014',
- 'commands-show-output',
+ 'MD031',
+ 'blanks-around-fences',
],
},
- ],
- fixed: `# Code Block Dollar Fence␊
- ␊
- \`\`\`fence␊
- code {MD014}␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`fence␊
- code {MD014}␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`fence␊
- code {MD014}␊
- code {MD014}␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`fence␊
- code {MD014}␊
- code {MD014}␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`fence␊
- $ code␊
- code␊
- $ code␊
- code␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`sh␊
- ␊
- npm install --save multimatch {MD014}␊
- \`\`\`␊
- ␊
- Space-prefixed command with no output:␊
- ␊
- \`\`\`sh␊
- ls example {MD014}␊
- \`\`\`␊
- `,
- }
-
-## code_block_fenced.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
+ errorContext: '```fence',
+ errorDetail: null,
errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 24,
+ },
+ lineNumber: 24,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD031',
+ 'blanks-around-fences',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
+ errorContext: '```',
+ errorDetail: null,
errorRange: null,
- fixInfo: null,
- lineNumber: 16,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 31,
+ },
+ lineNumber: 30,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 32,
+ },
+ lineNumber: 32,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 39,
+ },
+ lineNumber: 38,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '```fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 40,
+ },
+ lineNumber: 40,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '```',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 44,
+ },
+ lineNumber: 43,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 45,
+ },
+ lineNumber: 45,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 49,
+ },
+ lineNumber: 48,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '````fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 50,
+ },
+ lineNumber: 50,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '````',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 55,
+ },
+ lineNumber: 54,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~~fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 56,
+ },
+ lineNumber: 56,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~~',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 61,
+ },
+ lineNumber: 60,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '````fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 62,
+ },
+ lineNumber: 62,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '`````',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 67,
+ },
+ lineNumber: 66,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~~fence',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 68,
+ },
+ lineNumber: 68,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
+ ],
+ },
+ {
+ errorContext: '~~~~~',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 73,
+ },
+ lineNumber: 72,
+ ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ ruleNames: [
+ 'MD031',
+ 'blanks-around-fences',
],
},
- ],
- fixed: `# code_block_fenced␊
- ␊
- This is text.␊
- ␊
- This is a {MD046}␊
- code block.␊
- ␊
- And here is more text␊
- ␊
- \`\`\`text␊
- This is a code block that won't trigger.␊
- \`\`\`␊
- ␊
- But we'll do another:␊
- ␊
- And this {MD046}␊
- will.␊
- ␊
- Final text is here␊
- ␊
- ␊
- `,
- }
-
-## code_block_indented.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
+ errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
fixInfo: null,
- lineNumber: 10,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 8,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD048',
+ 'code-fence-style',
],
},
- ],
- fixed: `# code_block_indented␊
- ␊
- This is text.␊
- ␊
- This is a␊
- code block.␊
- ␊
- And here is more text␊
- ␊
- \`\`\`text␊
- This is {MD046:10} also a code block.␊
- \`\`\`␊
- ␊
- But we'll do another:␊
- ␊
- And this␊
- will.␊
- ␊
- One last one:␊
- ␊
- This is code␊
- ␊
- with an empty indented line.␊
- ␊
- ␊
- `,
- }
-
-## code_fence_style_backtick.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
fixInfo: null,
- lineNumber: 7,
+ lineNumber: 18,
ruleDescription: 'Code fence style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
@@ -10574,7 +10640,7 @@ Generated by [AVA](https://avajs.dev).
errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
fixInfo: null,
- lineNumber: 17,
+ lineNumber: 32,
ruleDescription: 'Code fence style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
@@ -10582,49 +10648,12 @@ Generated by [AVA](https://avajs.dev).
'code-fence-style',
],
},
- ],
- fixed: `# code_fence_style_backtick␊
- ␊
- \`\`\`text␊
- This is a code block␊
- \`\`\`␊
- ␊
- ~~~text␊
- This is {MD048:7} a code block␊
- ~~~␊
- ␊
- \`\`\`text␊
- ~~~␊
- This is fine␊
- ~~~␊
- \`\`\`␊
- ␊
- ~~~text␊
- \`\`\`␊
- This is not {MD048:17}␊
- \`\`\`␊
- ~~~␊
- ␊
- ␊
- `,
- }
-
-## code_fence_style_tilde.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: tilde; Actual: backtick',
+ errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
fixInfo: null,
- lineNumber: 3,
+ lineNumber: 45,
ruleDescription: 'Code fence style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
@@ -10634,10 +10663,23 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Expected: tilde; Actual: backtick',
+ errorDetail: 'Expected: backtick; Actual: tilde',
errorRange: null,
fixInfo: null,
- lineNumber: 11,
+ lineNumber: 56,
+ ruleDescription: 'Code fence style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ ruleNames: [
+ 'MD048',
+ 'code-fence-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: backtick; Actual: tilde',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 68,
ruleDescription: 'Code fence style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
ruleNames: [
@@ -10646,137 +10688,182 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `# code_fence_style_tilde␊
+ fixed: `# heading␊
␊
- \`\`\`text␊
- This is {MD048:3} a code block␊
+ text {MD031:4}␊
+ ␊
+ \`\`\`fence␊
+ code {MD031:6}␊
\`\`\`␊
␊
- ~~~text␊
- This is a code block␊
+ text {MD031:8} {MD048:8}␊
+ ␊
+ ~~~fence␊
+ code␊
~~~␊
␊
- \`\`\`text␊
+ text {MD031:10} {MD031:12}␊
+ ␊
+ \`\`\`fence␊
+ ~~~fence␊
+ code␊
~~~␊
- This is not fine {MD048:11}␊
+ \`\`\`␊
+ ␊
+ text {MD031:16} {MD031:18} {MD048:18}␊
+ ␊
+ ~~~fence␊
+ \`\`\`fence␊
+ code␊
+ \`\`\`␊
+ ~~~␊
+ ␊
+ text {MD031:22} {MD031:24}␊
+ ␊
+ \`\`\`fence␊
+ ␊
+ ~~~fence␊
+ code␊
~~~␊
+ ␊
\`\`\`␊
␊
- ~~~text␊
+ text {MD031:30} {MD031:32} {MD048:32}␊
+ ␊
+ ~~~fence␊
+ ␊
+ \`\`\`fence␊
+ code␊
\`\`\`␊
- This is␊
+ ␊
+ ~~~␊
+ ␊
+ text {MD031:38} {MD031:40}␊
+ ␊
+ \`\`\`fence␊
+ code␊
+ ~~~␊
+ \`\`\`␊
+ ␊
+ text {MD031:43} {MD031:45} {MD048:45}␊
+ ␊
+ ~~~fence␊
+ code␊
\`\`\`␊
~~~␊
␊
- ␊
- `,
- }
-
-## consecutive_blank_lines.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Expected: 1; Actual: 2',
- errorRange: null,
- fixInfo: {
- deleteCount: -1,
- },
- lineNumber: 5,
- ruleDescription: 'Multiple consecutive blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md012.md',
- ruleNames: [
- 'MD012',
- 'no-multiple-blanks',
- ],
- },
- ],
- fixed: `# consecutive_blank_lines␊
+ text {MD031:48} {MD031:50}␊
␊
- Some text␊
+ \`\`\`\`fence␊
+ \`\`\`fence␊
+ code␊
+ \`\`\`␊
+ \`\`\`\`␊
␊
- Some text {MD012:5}␊
+ text {MD031:54} {MD031:56} {MD048:56}␊
␊
- This is a code block␊
+ ~~~~fence␊
+ ~~~fence␊
+ code␊
+ ~~~␊
+ ~~~~␊
␊
+ text {MD031:60} {MD031:62}␊
␊
- with two blank lines in it␊
+ \`\`\`\`fence␊
+ \`\`\`fence␊
+ code␊
+ \`\`\`␊
+ \`\`\`\`\`␊
␊
- Some more text␊
+ text {MD031:66} {MD031:68} {MD048:68}␊
+ ␊
+ ~~~~fence␊
+ ~~~fence␊
+ code␊
+ ~~~␊
+ ~~~~~␊
+ ␊
+ text {MD031:72}␊
`,
}
-## consistent_bullet_styles_asterisk.md
+## first_heading_bad_atx.md
> Snapshot 1
{
errors: [],
- fixed: `# consistent_bullet_styles_asterisk␊
+ fixed: `## Heading␊
␊
- * Item␊
- * Item␊
- * Item␊
+ ␊
`,
}
-## consistent_bullet_styles_dash.md
+## first_heading_bad_setext.md
> Snapshot 1
{
errors: [],
- fixed: `# consistent_bullet_styles_dash␊
+ fixed: `Heading␊
+ -------␊
␊
- - Item␊
- - Item␊
- - Item␊
+ ␊
`,
}
-## consistent_bullet_styles_plus.md
+## first_heading_good_atx.md
> Snapshot 1
{
errors: [],
- fixed: `# consistent_bullet_styles_plus␊
- ␊
- + Item␊
- + Item␊
- + Item␊
+ fixed: `# Heading␊
`,
}
-## custom-rules.md
+## first_heading_good_setext.md
> Snapshot 1
{
errors: [],
- fixed: `# Heading␊
+ fixed: `Heading␊
+ =======␊
+ `,
+ }
+
+## first_line_top_level_heading_atx.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# First line is a top level heading␊
␊
- Sample text.␊
- ␊
- Sample text.␊
- ␊
- Sample text.␊
- ␊
- Sample text.␊
- ␊
+ This shouldn't trigger MD041␊
+ `,
+ }
+
+## first_line_top_level_heading_setext.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `First line top level heading␊
+ ============================␊
␊
- > Blockquote␊
+ This shouldn't trigger MD041␊
`,
}
-## default-spaces-MD010.md
+## fixing-with-front-matter.md
> Snapshot 1
@@ -10784,129 +10871,234 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Column: 1',
+ errorDetail: 'Expected: 0 or 2; Actual: 3',
errorRange: [
- 1,
- 13,
+ 23,
+ 3,
],
fixInfo: {
- deleteCount: 13,
- editColumn: 1,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 23,
},
- lineNumber: 1,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 6,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '# Fixing with Front Matter {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 6,
+ },
+ lineNumber: 5,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
+ ],
+ },
+ {
+ errorContext: '## Nested Heading {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 9,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleNames: [
+ 'MD022',
+ 'blanks-around-headings',
+ ],
+ },
+ {
+ errorContext: '[ link ]',
+ errorDetail: null,
errorRange: [
- 5,
- 2,
+ 6,
+ 8,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 6,
+ editColumn: 7,
+ insertText: 'link',
},
- lineNumber: 2,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 8,
+ ruleDescription: 'Spaces inside link text',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD039',
+ 'no-space-in-links',
],
},
{
errorContext: null,
- errorDetail: 'Column: 35',
+ errorDetail: null,
errorRange: [
- 35,
- 3,
+ 12,
+ 1,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 35,
- insertText: ' ',
+ editColumn: 13,
+ insertText: `␊
+ `,
},
- lineNumber: 3,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 11,
+ ruleDescription: 'Files should end with a single newline character',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD047',
+ 'single-trailing-newline',
],
},
],
- fixed: ` text {MD010}␊
- text and text 2 {MD010}␊
- texts with trailing spaces {MD010} ␊
+ fixed: `---␊
+ front: matter␊
+ ignore: this␊
+ ---␊
+ # Fixing with Front Matter {MD022}␊
␊
- ␊
+ Text text text {MD009}␊
+ ␊
+ Text [link](url) text {MD039}␊
+ ␊
+ ## Nested Heading {MD022}␊
+ ␊
+ Text {MD047}␊
`,
}
-## emoji-headings.md
+## fix_102_extra_nodes_in_link_text.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# fix_102_extra_nodes_in_link_text␊
+ ␊
+ [test _test_ test](www.test.com)␊
+ [test \`test\` test](www.test.com)␊
+ [test *test* test](www.test.com)␊
+ [test *test* *test* test](www.test.com)␊
+ [test *test* *test* *test* test](www.test.com)␊
+ [test **test** test](www.test.com)␊
+ [test __test__ test](www.test.com)␊
+ [this should not raise](www.shouldnotraise.com)␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-alt-title-h1.md
> Snapshot 1
{
errors: [
{
- errorContext: '##️⃣ Keycap Number Sign {MD018...',
+ errorContext: 'Top level heading {MD025}',
errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
- fixInfo: {
- editColumn: 3,
- insertText: ' ',
- },
- lineNumber: 11,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 4,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
],
- fixed: `# Emoji Headings␊
- ␊
- #️⃣ Keycap Number Sign␊
- ␊
- ␊
- ␊
- # #️⃣ Keycap Number Sign␊
- ␊
- Text␊
+ fixed: `---␊
+ alternate="Welcome to Jekyll!"␊
+ ---␊
+ # Top level heading {MD025}␊
␊
- ## ️⃣ Keycap Number Sign {MD018}␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
␊
- Text␊
+ ␊
+ `,
+ }
+
+## front-matter-alt-title-json.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `{␊
+ "date": "2017-01-26T22:17:00+02:00",␊
+ "alternate": "My document title and heading"␊
+ }␊
␊
- # Keycap Number Sign #️⃣␊
+ Some plain text here.␊
␊
- Text␊
+ ␊
+ `,
+ }
+
+## front-matter-alt-title-no-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ alternate="Welcome to Jekyll!"␊
+ ---␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
␊
- # Keycap Number Sign#️⃣␊
+ ␊
+ `,
+ }
+
+## front-matter-alt-title-toml.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++␊
+ date = "2017-01-26T22:17:00+02:00"␊
+ alternate = "My document title and heading"␊
+ +++␊
␊
- Text␊
+ Some plain text here.␊
␊
- ␊
+ ␊
`,
}
-## emphasis-markers.md
+## front-matter-alternate.md
> Snapshot 1
@@ -10914,27 +11106,7 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 9,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '_',
- },
- lineNumber: 5,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
- ruleNames: [
- 'MD049',
- 'emphasis-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
13,
1,
@@ -10942,250 +11114,431 @@ Generated by [AVA](https://avajs.dev).
fixInfo: {
deleteCount: 1,
editColumn: 13,
- insertText: '_',
},
- lineNumber: 5,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 6,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 7,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 7,
- insertText: '_',
- },
- lineNumber: 8,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ errorContext: 'Text {MD041}',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 4,
+ ruleDescription: 'First line in a file should be a top-level heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD041',
+ 'first-line-heading',
+ 'first-line-h1',
],
},
+ ],
+ fixed: `---␊
+ front: matter␊
+ ---␊
+ Text {MD041}␊
+ ␊
+ Text {MD009}␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-embedded.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Column: 6',
errorRange: [
- 11,
+ 6,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 11,
- insertText: '_',
+ editColumn: 6,
+ insertText: ' ',
},
- lineNumber: 8,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 5,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 7,
- 1,
- ],
+ errorContext: 'layout: post {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
+ errorRange: null,
fixInfo: {
- deleteCount: 1,
- editColumn: 7,
- insertText: '_',
+ insertText: `␊
+ `,
},
- lineNumber: 12,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 4,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `Text text text␊
+ ␊
+ ---␊
+ ␊
+ layout: post {MD022}␊
+ hard: tab {MD010}␊
+ title: embedded␊
+ ---␊
+ ␊
+ Text text text␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-empty-title-no-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
- errorRange: [
- 11,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 11,
- insertText: '_',
- },
- lineNumber: 12,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ errorContext: 'Front matter from [Jekyll docu...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'First line in a file should be a top-level heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD041',
+ 'first-line-heading',
+ 'first-line-h1',
],
},
+ ],
+ fixed: `---␊
+ layout: post␊
+ title: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-empty.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 9,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 9,
- insertText: '**',
- },
- lineNumber: 14,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 14,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 14,
- insertText: '**',
- },
- lineNumber: 14,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 7,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 7,
- insertText: '**',
- },
- lineNumber: 17,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
- ruleNames: [
- 'MD050',
- 'strong-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 12,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 12,
- insertText: '**',
- },
- lineNumber: 17,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ errorContext: 'Another {MD025}',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
+ ],
+ fixed: `---␊
+ ---␊
+ # Heading␊
+ ␊
+ # Another {MD025}␊
+ `,
+ }
+
+## front-matter-no-crlf.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ front: matter␊
+ ---`,
+ }
+
+## front-matter-no-title-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ layout: post␊
+ notitle: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ # Top level heading␊
+ ␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-no-title-no-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 7,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 7,
- insertText: '**',
- },
- lineNumber: 21,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ errorContext: 'Front matter from [Jekyll docu...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'First line in a file should be a top-level heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD041',
+ 'first-line-heading',
+ 'first-line-h1',
],
},
+ ],
+ fixed: `---␊
+ layout: post␊
+ notitle: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊
+ ␊
+ ␊
+ `,
+ }
+
+## front-matter-title-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
- errorRange: [
- 12,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 12,
- insertText: '**',
- },
- lineNumber: 21,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ errorContext: 'Top level heading {MD025}',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
],
- fixed: `# Emphasis Markers␊
+ fixed: `---␊
+ layout: post␊
+ title: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ # Top level heading {MD025}␊
␊
- Text to _set_ the **preferences**.␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
␊
- This is _bad_ {MD049}␊
+ ␊
+ `,
+ }
+
+## front-matter-title-h2.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ layout: post␊
+ title: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ ## Secondary heading␊
␊
- This \`is␊
- also\` _bad_ {MD049}␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
␊
- This \`is␊
- also␊
- very\` _bad_ {MD049}␊
+ ␊
+ `,
+ }
+
+## front-matter-title-json-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `{␊
+ "date": "2017-01-26T22:17:00+02:00",␊
+ "title": "My document title and heading"␊
+ } ␊
␊
- This is **bad** {MD050}␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-title-json.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `{␊
+ "date": "2017-01-26T22:17:00+02:00",␊
+ "title": "My document title and heading"␊
+ }␊
␊
- This \`is␊
- also\` **bad** {MD050}␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-title-no-h1.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ layout: post␊
+ title: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ ---␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
␊
- This \`is␊
- also␊
- very\` **bad** {MD050}␊
+ ␊
+ `,
+ }
+
+## front-matter-title-pandoc-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++ ␊
+ title: "Welcome to pandoc!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ ... ␊
␊
- HTML __should__ *be* ignored
␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-title-pandoc.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++␊
+ title: "Welcome to pandoc!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ ...␊
␊
- ␊
- HTML __should__ *be* ignored␊
-
␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-title-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `--- ␊
+ layout: post␊
+ title: "Welcome to Jekyll!"␊
+ date: 2015-11-17 16:16:01 -0600␊
+ categories: jekyll update␊
+ --- ␊
␊
- ␊
+ Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
+ ␊
+ ␊
`,
}
-## emphasis-not-heading-in-blockquote.md
+## front-matter-title-toml-spaces.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++ ␊
+ date = "2017-01-26T22:17:00+02:00"␊
+ title = "My document title and heading"␊
+ +++ ␊
+ ␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-title-toml.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++␊
+ date = "2017-01-26T22:17:00+02:00"␊
+ title = "My document title and heading"␊
+ +++␊
+ ␊
+ Some plain text here.␊
+ `,
+ }
+
+## front-matter-with-dashes.md
> Snapshot 1
@@ -11193,456 +11546,473 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Column: 1',
errorRange: [
- 3,
+ 1,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '_',
+ editColumn: 1,
+ insertText: ' ',
},
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 10,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
+ ],
+ fixed: `---␊
+ layout: post␊
+ title: Title with ---␊
+ tags: front matter␊
+ ---␊
+ ## Heading␊
+ ␊
+ ---␊
+ ␊
+ Hard tab {MD010}␊
+ `,
+ }
+
+## front-matter-with-disable-next-line.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Element: hr',
errorRange: [
- 8,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 8,
- insertText: '_',
- },
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 10,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Element: hr',
errorRange: [
- 3,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 3,
- insertText: '_',
- },
+ fixInfo: null,
lineNumber: 15,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Element: hr',
errorRange: [
- 18,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 18,
- insertText: '_',
- },
- lineNumber: 15,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 16,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `# Heading␊
- ␊
- > _Text_␊
- ␊
- Text␊
- ␊
- > _Text text text_␊
- ␊
- Text␊
- ␊
- > _Text_ {MD049}␊
- ␊
- Text␊
- ␊
- > _Text text text_ {MD049}␊
- ␊
- Text␊
- ␊
- > **Text**␊
- ␊
- Text␊
- ␊
- > **Text text text**␊
- `,
- }
-
-## emphasis_instead_of_headings.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Section 1: the first section {...',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
- ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ errorContext: null,
+ errorDetail: 'Element: hr',
+ errorRange: [
+ 1,
+ 5,
],
- },
- {
- errorContext: 'Section 1.1: another section {...',
- errorDetail: null,
- errorRange: null,
fixInfo: null,
- lineNumber: 12,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ lineNumber: 19,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Section 2: yet more sections {...',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
- ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ errorContext: null,
+ errorDetail: 'Element: hr',
+ errorRange: [
+ 1,
+ 5,
],
- },
- {
- errorContext: 'Section 3: oh no more sections...',
- errorDetail: null,
- errorRange: null,
fixInfo: null,
- lineNumber: 30,
- ruleDescription: 'Emphasis used instead of a heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md036.md',
+ lineNumber: 20,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD036',
- 'no-emphasis-as-heading',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
1,
- 1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '*',
- },
- lineNumber: 30,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 22,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 48,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 48,
- insertText: '*',
- },
- lineNumber: 30,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
1,
- 2,
+ 5,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '**',
- },
- lineNumber: 12,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ fixInfo: null,
+ lineNumber: 25,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 47,
- 2,
+ 1,
+ 5,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 47,
- insertText: '**',
- },
- lineNumber: 12,
- ruleDescription: 'Strong style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md050.md',
+ fixInfo: null,
+ lineNumber: 26,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD050',
- 'strong-style',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `# emphasis_instead_of_headings␊
- ␊
- **Section 1: the first section {MD036}**␊
- ␊
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
- incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
- nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
- eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
- in culpa qui officia deserunt mollit anim id est laborum.␊
- ␊
- **Section 1.1: another section {MD036} {MD050}**␊
- ␊
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
- incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
- nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
- eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
- in culpa qui officia deserunt mollit anim id est laborum.␊
- ␊
- *Section 2: yet more sections {MD036}*␊
- ␊
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor␊
- incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis␊
- nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.␊
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore␊
- eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt␊
- in culpa qui officia deserunt mollit anim id est laborum.␊
- ␊
- *Section 3: oh no more sections {MD036} {MD049}*␊
- ␊
- This is a normal paragraph␊
- **that just happens to have emphasized text in**␊
- even though the emphasized text is on its own line.␊
- ␊
- This is another **normal** paragraph with some text in it. This also should␊
- not trigger the rule.␊
- ␊
- **This is an entire paragraph that has been emphasized, and shouldn't be␊
- detected as a heading because it's on multiple lines**␊
- ␊
- **This also shouldn't be detected as a heading as it ends in punctuation.**␊
- ␊
- **This shouldn't be detected as a heading as it ends in full-width punctuation。**␊
- ␊
- **[This as well since it is a link](https://example.com)**␊
- `,
- }
-
-## emphasis_style_asterisk.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
1,
- 1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '*',
- },
- lineNumber: 9,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 28,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 6,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 6,
- insertText: '*',
- },
- lineNumber: 9,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 29,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 6,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 6,
- insertText: '*',
- },
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 9,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '*',
- },
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 32,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 9,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '*',
- },
- lineNumber: 13,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 34,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: underscore',
+ errorDetail: 'Element: hr',
errorRange: [
- 13,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 13,
- insertText: '*',
- },
- lineNumber: 13,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ fixInfo: null,
+ lineNumber: 35,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD033',
+ 'no-inline-html',
],
},
],
- fixed: `# Emphasis style asterisk␊
+ fixed: `---␊
+ front: matter␊
+ ---␊
␊
- *This* is fine␊
+ # Front Matter with Disable-Next-Line␊
␊
- This *is* fine␊
+ ␊
+
␊
␊
- This is *fine*␊
+
{MD033}␊
␊
- *This* is not␊
+ ␊
+
␊
␊
- This *is* not␊
+
{MD033}␊
+
{MD033}␊
+ ␊
+
␊
+
{MD033}␊
+
{MD033}␊
␊
- This is *not*␊
+
{MD033}␊
+
{MD033}␊
+
␊
+
{MD033}␊
+
{MD033}␊
+
␊
+
{MD033}␊
+
{MD033}␊
+
␊
+
{MD033}␊
+
{MD033}␊
+
␊
+
{MD033}␊
+
{MD033}␊
+ `,
+ }
+
+## front-matter-yaml-in-html-comment.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `␊
␊
- {MD049:-2} {MD049:-4} {MD049:-6}␊
+ # Front Matter YAML in HTML Comment␊
␊
- Internal emphasis is preserved:␊
- apple*banana*cherry, apple*banana*, *banana*cherry␊
- apple_banana_cherry, apple_banana_, _banana_cherry␊
+ Text text text␊
+ `,
+ }
+
+## front-matter.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `---␊
+ front: matter␊
+ ---␊
+ # Heading 1␊
+ ␊
+ ## Heading 2␊
+ `,
+ }
+
+## github-footnote-syntax.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# GitHub Footnote Syntax␊
+ ␊
+ > Example from ␊
+ ␊
+ Here is a simple footnote[^1].␊
+ ␊
+ A footnote can also have multiple lines[^2].␊
+ ␊
+ You can also use words, to fit your writing style more closely[^note].␊
+ ␊
+ [^1]: My reference.␊
+ [^2]: Every new line should be prefixed with 2 spaces.␊
+ This allows you to have a footnote with multiple lines.␊
+ [^note]:␊
+ Named footnotes will still render with numbers instead of the text but allow easier identification and linking.␊
+ This footnote also has been made with a different syntax using 4 spaces for new lines.␊
␊
␊
`,
}
-## emphasis_style_underscore.md
+## h1-as-top-level-heading.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `H1 as Top-Level Heading
␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## h1-image-as-top-level-heading.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## h2-as-top-level-heading.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `H2 as Top-Level Heading
␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## h3-as-top-level-heading.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: 'H3 as Top-Level Heading {M...',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 1,
+ ruleDescription: 'First line in a file should be a top-level heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
+ ruleNames: [
+ 'MD041',
+ 'first-line-heading',
+ 'first-line-h1',
+ ],
+ },
+ ],
+ fixed: `H3 as Top-Level Heading {MD041}
␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## hard-line-breaks.md
> Snapshot 1
@@ -11650,1711 +12020,1984 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 4',
errorRange: [
- 1,
- 1,
+ 5,
+ 4,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '_',
+ deleteCount: 4,
+ editColumn: 5,
},
lineNumber: 9,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
6,
- 1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
+ deleteCount: 2,
editColumn: 6,
- insertText: '_',
},
- lineNumber: 9,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 24,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 6,
- 1,
+ 4,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 6,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 4,
},
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 32,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 9,
- 1,
+ 8,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 8,
},
- lineNumber: 11,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 36,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 9,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 9,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 1,
},
- lineNumber: 13,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 39,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: underscore; Actual: asterisk',
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 13,
1,
+ 2,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 13,
- insertText: '_',
+ deleteCount: 2,
+ editColumn: 1,
},
- lineNumber: 13,
- ruleDescription: 'Emphasis style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md049.md',
+ lineNumber: 41,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD049',
- 'emphasis-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
- ],
- fixed: `# Emphasis style underscore␊
- ␊
- _This_ is fine␊
- ␊
- This _is_ fine␊
- ␊
- This is _fine_␊
- ␊
- _This_ is not␊
- ␊
- This _is_ not␊
- ␊
- This is _not_␊
- ␊
- {MD049:-2} {MD049:-4} {MD049:-6}␊
- ␊
- Internal emphasis is preserved:␊
- apple*banana*cherry, apple*banana*, *banana*cherry␊
- apple_banana_cherry, apple_banana_, _banana_cherry␊
- ␊
- ␊
- `,
- }
-
-## empty-links.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '[text]()',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 4',
errorRange: [
1,
- 8,
+ 4,
],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 4,
+ editColumn: 1,
+ },
+ lineNumber: 43,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text](<>)',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
10,
+ 2,
],
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 10,
+ },
+ lineNumber: 48,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text]( <> )',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 12,
+ 5,
+ 2,
],
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 5,
+ },
+ lineNumber: 54,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text](<> "title")',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 18,
+ 11,
+ 2,
],
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 11,
+ },
+ lineNumber: 58,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text]( <> "title" )',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 20,
+ 11,
+ 2,
],
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 11,
+ },
+ lineNumber: 61,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text](#)',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 9,
+ 10,
+ 2,
],
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 10,
+ },
+ lineNumber: 62,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text]( # )',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
11,
+ 2,
],
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 11,
+ },
+ lineNumber: 63,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text](# "title")',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 17,
+ 10,
+ 2,
],
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 10,
+ },
+ lineNumber: 65,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text]( # "title" )',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 19,
+ 22,
+ 2,
],
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 22,
+ },
+ lineNumber: 67,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
- errorContext: '[text][frag]',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: 0 or 2; Actual: 2',
errorRange: [
- 1,
- 12,
+ 10,
+ 2,
],
- fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 10,
+ },
+ lineNumber: 71,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
+ ],
+ fixed: `# Hard Line Breaks␊
+ ␊
+ hard ␊
+ break␊
+ ␊
+ hard\\␊
+ break␊
+ ␊
+ hard␊
+ break␊
+ ␊
+ hard ␊
+ break␊
+ ␊
+ hard\\␊
+ break␊
+ ␊
+ *hard ␊
+ break*␊
+ ␊
+ *hard\\␊
+ break*␊
+ ␊
+ \`code␊
+ span\`␊
+ ␊
+ \`code\\␊
+ span\`␊
+ ␊
+ not\\␊
+ ␊
+ not␊
+ ␊
+ ## not\\␊
+ ␊
+ ### not␊
+ ␊
+ - Item␊
+ ␊
+ - Item␊
+ ␊
+ - Item␊
+ ␊
+ - Item␊
+ ␊
+ Text text␊
+ text \`code␊
+ span code␊
+ span\` text␊
+ text␊
+ ␊
+ Text text␊
+ text text␊
+ text␊
+ ␊
+ Text text␊
+ text \`code␊
+ span\` text␊
+ ␊
+ Text text␊
+ text \`code␊
+ span code␊
+ span\` text␊
+ ␊
+ Text text␊
+ ␊
+ Text \`code span\` text␊
+ ␊
+ Text text ␊
+ \`code span\` ␊
+ text text␊
+ ␊
+ {MD009:9}␊
+ {MD009:24}␊
+ {MD009:32}␊
+ {MD009:36}␊
+ {MD009:39}␊
+ {MD009:41}␊
+ {MD009:43}␊
+ {MD009:48}␊
+ {MD009:54}␊
+ {MD009:58}␊
+ {MD009:61}␊
+ {MD009:62}␊
+ {MD009:63}␊
+ {MD009:65}␊
+ {MD009:67}␊
+ {MD009:71}␊
+ ␊
+ ␊
+ `,
+ }
+
+## heading-duplicate-content-siblings-only.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '[text][ frag ]',
- errorDetail: null,
- errorRange: [
- 1,
- 14,
- ],
+ errorContext: null,
+ errorDetail: 'Expected: h4; Actual: h5',
+ errorRange: null,
fixInfo: null,
- lineNumber: 25,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 27,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD001',
+ 'heading-increment',
],
},
{
- errorContext: '[frag][]',
+ errorContext: 'B',
errorDetail: null,
- errorRange: [
- 1,
- 8,
- ],
+ errorRange: null,
fixInfo: null,
- lineNumber: 27,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 11,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: '[frag]',
+ errorContext: 'C',
errorDetail: null,
- errorRange: [
- 1,
- 6,
- ],
+ errorRange: null,
fixInfo: null,
- lineNumber: 29,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 23,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: '[text]()',
+ errorContext: 'G',
errorDetail: null,
- errorRange: [
- 1,
- 8,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 35,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
],
+ },
+ {
+ errorContext: 'E',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 74,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 39,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: '[text]()',
+ errorContext: 'A',
errorDetail: null,
- errorRange: [
- 1,
- 8,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 43,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
],
+ },
+ {
+ errorContext: 'B',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 78,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 51,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: '[text]()',
+ errorContext: 'Heading duplicate content sibl...',
errorDetail: null,
- errorRange: [
- 1,
- 8,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 55,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
],
+ },
+ {
+ errorContext: 'BB',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 80,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 73,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD024',
+ 'no-duplicate-heading',
],
},
{
- errorContext: '[text]()',
+ errorContext: 'BBB',
errorDetail: null,
- errorRange: [
- 1,
- 8,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 94,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
],
+ },
+ {
+ errorContext: 'A',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 83,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 3,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
{
- errorContext: '[text]()',
+ errorContext: 'A',
errorDetail: null,
- errorRange: [
- 1,
- 8,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 43,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
+ },
+ {
+ errorContext: 'Heading duplicate content sibl...',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 85,
- ruleDescription: 'No empty links',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md042.md',
+ lineNumber: 55,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD042',
- 'no-empty-links',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
+ ],
+ },
+ {
+ errorContext: 'AA',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 59,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
+ ],
+ },
+ {
+ errorContext: 'BB',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 78,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
],
- fixed: `# Heading␊
- ␊
- ## Empty links␊
- ␊
- [text]() {MD042}␊
- ␊
- [text](<>) {MD042}␊
- ␊
- [text]( <> ) {MD042}␊
- ␊
- [text](<> "title") {MD042}␊
- ␊
- [text]( <> "title" ) {MD042}␊
- ␊
- [text](#) {MD042}␊
- ␊
- [text]( # ) {MD042}␊
- ␊
- [text](# "title") {MD042}␊
- ␊
- [text]( # "title" ) {MD042}␊
- ␊
- [text][frag] {MD042}␊
- ␊
- [text][ frag ] {MD042}␊
- ␊
- [frag][] {MD042}␊
+ fixed: `# Heading duplicate content siblings only␊
␊
- [frag] {MD042}␊
+ # A␊
␊
- [frag]: #␊
+ {MD025:3}␊
␊
- ## Non-empty links␊
+ ## B␊
␊
- ### frag␊
+ ### C␊
␊
- [text](link)␊
+ ## B␊
␊
- [text]( link )␊
+ {MD024:11}␊
␊
- [text](link "title")␊
+ ### C␊
␊
- [text]( link "title" )␊
+ ## D␊
␊
- [text]()␊
+ ### C␊
␊
- [text]( )␊
+ ### E␊
␊
- [text]( "title")␊
+ ### C␊
␊
- [text]( "title" )␊
+ {MD024:23}␊
␊
- [text](#frag)␊
+ ##### F␊
␊
- [text]( #frag )␊
+ {MD001:27}␊
␊
- [text](#frag "title")␊
+ #### G␊
␊
- [text]( #frag "title" )␊
+ ##### F␊
␊
- [text][ref]␊
+ #### G␊
␊
- [text][ ref ]␊
+ {MD024:35}␊
␊
- [ref]: link␊
+ ### E␊
␊
- [text]␊
+ {MD024:39}␊
␊
- [text]: link␊
+ # A␊
␊
- ## Inline of links with empty link (#308)␊
+ {MD024:43} {MD025:43}␊
␊
- [text](link-1)␊
- [text]() {MD042}␊
- [text](link-3)␊
+ ## B␊
␊
- [text](link-1)␊
- [text]() {MD042}␊
- [text](link-3)␊
- [text]() {MD042}␊
+ ### C␊
␊
- [text](link-1)␊
- [text]() {MD042}␊
- [text](link-3)␊
- [text]() {MD042}␊
- [text](link-5)␊
- `,
- }
-
-## empty_doc.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: '',
- }
-
-## escaped-emphasis-markers.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
+ ## B␊
␊
- ## Single-character markers␊
+ {MD024:51}␊
␊
- None are valid emphasis without spaces.␊
+ # Heading duplicate content siblings only␊
␊
- Escaped asterisks \\* should \\* be ignored by MD037.␊
+ {MD024:55} {MD025:55}␊
␊
- Escaped asterisks \\* should * be ignored by MD037.␊
+ AA␊
+ ==␊
␊
- Escaped asterisks * should \\* be ignored by MD037.␊
+ {MD025:59}␊
␊
- Escaped underscores \\_ should \\_ be ignored by MD037.␊
+ AA␊
+ --␊
␊
- Escaped underscores \\_ should _ be ignored by MD037.␊
+ BB␊
+ --␊
␊
- Escaped underscores _ should \\_ be ignored by MD037.␊
+ CC␊
+ --␊
␊
- ## Double-character markers, start␊
+ BB␊
+ --␊
␊
- All *could* be reported because they are valid single-character␊
- marker emphasis when no spaces are present.␊
+ {MD024:73}␊
␊
- Escaped asterisks \\** should ** be ignored by MD037.␊
+ BB␊
+ ==␊
␊
- Escaped asterisks *\\* should ** be ignored by MD037.␊
+ {MD025:78}␊
␊
- Escaped underscores \\__ should __ be ignored by MD037.␊
+ BB␊
+ --␊
␊
- Escaped underscores _\\_ should __ be ignored by MD037.␊
+ ## AAA ##␊
␊
- ## Double-character markers, end␊
+ ### BBB ###␊
␊
- All should be reported, but are ignored because they look like␊
- the start of an embedded emphasis.␊
+ ## BBB ##␊
␊
- Escaped asterisks ** should \\** be ignored by MD037.␊
+ ### BBB ###␊
␊
- Escaped asterisks ** should *\\* be ignored by MD037.␊
+ ## BBB ##␊
␊
- Escaped underscores __ should \\__ be ignored by MD037.␊
+ {MD024:94}␊
␊
- Escaped underscores __ should _\\_ be ignored by MD037.␊
+ ␊
`,
}
-## every-markdown-syntax.md
+## headings-with-emoji.md
> Snapshot 1
{
errors: [],
- fixed: `Every Markdown Syntax␊
- =====================␊
- ␊
- ## Level 2 ATX Heading␊
- ␊
- ### Level 3 Closed ATX Heading ###␊
- ␊
- ---␊
- ␊
- Text *emphasized* **strong** ___emphasized+strong___.␊
- Text \`code\` html .␊
- Text [link](https://example.com/page) [link][] [link] ![image][link].␊
- Text https://example.com/page.␊
- ␊
- Hard ␊
- line break␊
+ fixed: `# headings-with-emoji␊
␊
- [link]: https://example.com/page "Title"␊
+ ## Known Issues :bug:␊
␊
- > Block quote␊
- > > Nested␊
+ ## Love :heartpulse:␊
␊
- - Unordered␊
- - List␊
- - Items␊
- Indented␊
+ ## :tada:␊
␊
- Content␊
+ ## :checkered_flag:␊
␊
- 1. Ordered␊
- 2. List␊
- 1. Items␊
- Indented␊
+ ## :clock930:␊
␊
- Content␊
+ ## :t-rex:␊
␊
- \`\`\`markdown options␊
- Fenced code block␊
- \`\`\`␊
+ ## Boba:bubble_tea:␊
␊
- Indented code block␊
+ ␊
␊
- ␊
- HTML block␊
-
␊
+ ## Fix the :bug: ##␊
␊
- | Table | Heading |␊
- | ----- | ------- |␊
- | Table | Cell |␊
+ Another :heartpulse:␊
+ --------------------␊
␊
- ␊
+ :eyes:␊
+ ------␊
`,
}
-## fenced-code-in-list.md
+## headings-with-html-entities.md
> Snapshot 1
{
- errors: [],
- fixed: `# Heading␊
- ␊
- - Item␊
- ␊
- \`\`\`javascript␊
- debugger;␊
- ␊
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \';\'',
+ errorRange: [
+ 31,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 31,
+ },
+ lineNumber: 24,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \';\'',
+ errorRange: [
+ 34,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 34,
+ },
+ lineNumber: 26,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \';\'',
+ errorRange: [
+ 31,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 31,
+ },
+ lineNumber: 28,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ ],
+ fixed: `# headings-with-html-entities␊
␊
- debugger;␊
- \`\`\`␊
+ ␊
␊
- text␊
+ ## Copyright © 2000␊
␊
- - Item␊
+ ## Copyright 2001 ©␊
␊
- - Subitem␊
+ ## Copyright 2002©␊
␊
- \`\`\`javascript␊
- debugger;␊
+ ## Copyright 2003 ©␊
␊
+ ## Copyright 2004 ©␊
␊
- debugger;␊
- \`\`\`␊
+ ## Copyright 2004 ©␊
␊
- text␊
+ ## Copyright 2005 ©␊
␊
- - Subitem␊
+ ## Copyright 2006 © ##␊
␊
- - Item␊
+ Copyright 2007 ©␊
+ ---------------------␊
␊
- - Subitem␊
+ ## Copyright 2008 {MD026} copy␊
␊
- \`\`\`javascript␊
- debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;␊
- \`\`\`␊
+ ## Copyright 2009 {MD026} #x000A9␊
␊
- ␊
+ ## Copyright 2010 {MD026} #169␊
`,
}
-## fenced-code-unmatched.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
- ␊
- Text␊
- ␊
- \`\`\`code\`\`\`␊
- ␊
- Text␊
- ␊
- \`\`\`javascript␊
- var x = 5;␊
- \`\`\`␊
- ␊
- Text␊
- `,
- }
-
-## fenced_code_blocks.md
+## headings-with-invalid-spaces.md
> Snapshot 1
{
errors: [
{
- errorContext: '```',
+ errorContext: '## Non-breaking space {MD018}',
errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 25,
- ruleDescription: 'Fenced code blocks should have a language specified',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md040.md',
- ruleNames: [
- 'MD040',
- 'fenced-code-language',
+ errorRange: [
+ 1,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ editColumn: 3,
+ insertText: ' ',
+ },
+ lineNumber: 7,
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
- ],
- fixed: `# fenced_code_blocks␊
- ␊
- This is a GFM-style fenced code block:␊
- ␊
- \`\`\` bash␊
- #!/bin/bash␊
- ␊
- # Print something to stdout:␊
- echo "Hello"␊
- echo "World"␊
- \`\`\`␊
- ␊
- This is a kramdown-style fenced code block:␊
- ␊
- ~~~ bash␊
- #!/bin/bash␊
- ␊
- # Print something to stdout:␊
- echo "Hello"␊
- echo "World"␊
- ~~~␊
- ␊
- None of the above should trigger any heading related rules.␊
- ␊
- \`\`\`␊
- Code block without a language specifier␊
- \`\`\`␊
- ␊
- {MD040:25} {MD048:15}␊
- `,
- }
-
-## fenced_code_blocks_in_lists.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
- ruleNames: [
- 'MD046',
- 'code-block-style',
+ errorContext: '## Extra non-breaking space {...',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: fenced; Actual: indented',
- errorRange: null,
- fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ fixInfo: {
+ editColumn: 3,
+ insertText: ' ',
+ },
+ lineNumber: 25,
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
- ],
- fixed: `# test doc␊
- ␊
- this is some text␊
- ␊
- * This is a list item␊
- ␊
- \`\`\`fenced␊
- this is a code block within the list item.␊
- \`\`\`␊
- ␊
- with more text here␊
- ␊
- * and another list item here␊
- ␊
- And another paragraph.␊
- ␊
- But this code block {MD046}␊
- ␊
- is *NOT* in a list and should error.␊
- ␊
- And in addition to that...␊
- ␊
- \`\`\`text␊
- This code block is both indented␊
- and fenced and should *also* error.␊
- \`\`\`␊
- ␊
- And finally:␊
- ␊
- \`\`\`text␊
- This is a code block␊
- ␊
- And this is a code block in a code block and should *not* error␊
- ␊
- More stuff here␊
- \`\`\`␊
- ␊
- all␊
- ␊
- {MD046:23}␊
- `,
- }
-
-## fenced_code_with_nesting.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '```fence',
+ errorContext: '## Extra normal space {MD019}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 4,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 4,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 23,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '```',
+ errorContext: '## Extra Tab {MD019}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 7,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 6,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 27,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '~~~fence',
+ errorContext: '## Non-breaking space (left) {...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 3,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 8,
+ deleteCount: 39,
+ editColumn: 1,
+ insertText: '## Non-breaking space (left) {MD020} ##',
},
- lineNumber: 8,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 15,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '~~~',
+ errorContext: '...aking space (right) {MD020} ##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 38,
+ 3,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 11,
+ deleteCount: 40,
+ editColumn: 1,
+ insertText: '## Non-breaking space (right) {MD020} ##',
},
- lineNumber: 10,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 19,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '```fence',
+ errorContext: '## Extra non-breaking space (...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 3,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 12,
+ deleteCount: 46,
+ editColumn: 1,
+ insertText: '## Extra non-breaking space (left) {MD020} ##',
},
- lineNumber: 12,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 31,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '```',
+ errorContext: '...king space (right) {MD020} ##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 45,
+ 3,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 17,
+ deleteCount: 47,
+ editColumn: 1,
+ insertText: '## Extra non-breaking space (right) {MD020} ##',
},
- lineNumber: 16,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 35,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
- errorContext: '~~~fence',
+ errorContext: '## Extra Normal space (both) ...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 18,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 18,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 29,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '~~~',
+ errorContext: '...ormal space (both) {MD021} ##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 39,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 23,
+ deleteCount: 1,
+ editColumn: 39,
},
- lineNumber: 22,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 29,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '```fence',
+ errorContext: '## Extra tab (left) {MD021} #...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 24,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 24,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 33,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
{
- errorContext: '```',
+ errorContext: '... Extra tab (right) {MD021} ##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 30,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 31,
+ deleteCount: 1,
+ editColumn: 30,
},
- lineNumber: 30,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 37,
+ ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD021',
+ 'no-multiple-space-closed-atx',
],
},
+ ],
+ fixed: `# Headings with invalid spaces␊
+ ␊
+ ## Normal space␊
+ ␊
+ ## Normal outer non-breaking inner space␊
+ ␊
+ ## Non-breaking space {MD018}␊
+ ␊
+ ## Tab␊
+ ␊
+ ## Normal space (both) ##␊
+ ␊
+ ## Normal outer non-breaking inner space (both) ##␊
+ ␊
+ ## Non-breaking space (left) {MD020} ##␊
+ ␊
+ ## Tab (left) ##␊
+ ␊
+ ## Non-breaking space (right) {MD020} ##␊
+ ␊
+ ## Tab (right) ##␊
+ ␊
+ ## Extra normal space {MD019}␊
+ ␊
+ ## Extra non-breaking space {MD018}␊
+ ␊
+ ## Extra Tab {MD019}␊
+ ␊
+ ## Extra Normal space (both) {MD021} ##␊
+ ␊
+ ## Extra non-breaking space (left) {MD020} ##␊
+ ␊
+ ## Extra tab (left) {MD021} ##␊
+ ␊
+ ## Extra non-breaking space (right) {MD020} ##␊
+ ␊
+ ## Extra tab (right) {MD021} ##␊
+ ␊
+ ␊
+ `,
+ }
+
+## headings-without-content.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '~~~fence',
+ errorContext: '#',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 32,
+ deleteCount: 1,
+ editColumn: 3,
},
- lineNumber: 32,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 10,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '~~~',
+ errorContext: '#',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 3,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 39,
+ deleteCount: 2,
+ editColumn: 3,
},
- lineNumber: 38,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 12,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '```fence',
+ errorContext: '##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 40,
+ deleteCount: 1,
+ editColumn: 4,
},
- lineNumber: 40,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 18,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
{
- errorContext: '```',
+ errorContext: '##',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 4,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 44,
+ deleteCount: 2,
+ editColumn: 4,
},
- lineNumber: 43,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 20,
+ ruleDescription: 'Multiple spaces after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD019',
+ 'no-multiple-space-atx',
],
},
+ ],
+ fixed: `# Headings Without Content␊
+ ␊
+ ␊
+ ␊
+ ␊
+ #␊
+ ␊
+ # ␊
+ ␊
+ # ␊
+ ␊
+ # ␊
+ ␊
+ ##␊
+ ␊
+ ## ␊
+ ␊
+ ## ␊
+ ␊
+ ## ␊
+ ␊
+ {MD019:10} {MD019:12} {MD019:18} {MD019:20}␊
+ `,
+ }
+
+## headings_bad.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '~~~fence',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: h2; Actual: h3',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 45,
- },
- lineNumber: 45,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD001',
+ 'heading-increment',
],
},
{
- errorContext: '~~~',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: h3; Actual: h4',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 49,
- },
- lineNumber: 48,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD001',
+ 'heading-increment',
],
},
+ ],
+ fixed: `# Heading␊
+ ␊
+ ### Heading 3 {MD001}␊
+ ␊
+ ## Heading 2␊
+ ␊
+ #### Heading 4 {MD001}␊
+ ␊
+ ␊
+ ###### Not heading␊
+
␊
+ ␊
+ ␊
+ `,
+ }
+
+## headings_good.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading 1␊
+ ␊
+ ## Heading 2␊
+ ␊
+ ## Heading 3␊
+ `,
+ }
+
+## headings_good_setext_with_atx.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '````fence',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: setext; Actual: atx',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 50,
- },
- lineNumber: 50,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD003',
+ 'heading-style',
],
},
{
- errorContext: '````',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: atx; Actual: atx_closed',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 55,
- },
- lineNumber: 54,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD003',
+ 'heading-style',
],
},
+ ],
+ fixed: `Heading 1␊
+ =========␊
+ ␊
+ Heading 2␊
+ ---------␊
+ ␊
+ ## Heading 2 {MD003}␊
+ ␊
+ ### Heading 3␊
+ ␊
+ #### Heading 4 {MD003} ####␊
+ ␊
+ ␊
+ `,
+ }
+
+## headings_good_setext_with_atx_closed.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '~~~~fence',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: setext; Actual: atx_closed',
errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 56,
- },
- lineNumber: 56,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD003',
+ 'heading-style',
],
},
{
- errorContext: '~~~~',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: atx_closed; Actual: atx',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ ruleNames: [
+ 'MD003',
+ 'heading-style',
+ ],
+ },
+ ],
+ fixed: `Heading 1␊
+ =========␊
+ ␊
+ Heading 2␊
+ ---------␊
+ ␊
+ ## Heading 2 {MD003} ##␊
+ ␊
+ ### Heading 3 ###␊
+ ␊
+ #### Heading 4 {MD003}␊
+ ␊
+ ␊
+ `,
+ }
+
+## headings_good_with_issue_numbers.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Heading 1␊
+ ␊
+ ## Heading 2␊
+ ␊
+ See the following issues:␊
+ ␊
+ * #1234␊
+ * #5678 (and related)␊
+ * #5678␊
+ * #9101␊
+ ␊
+ ## Heading 3␊
+ `,
+ }
+
+## headings_surrounding_space_atx.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '## Heading 2 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 61,
+ lineNumber: 4,
},
- lineNumber: 60,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 3,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '````fence',
- errorDetail: null,
+ errorContext: '## Heading 3 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 62,
},
- lineNumber: 62,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 5,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '`````',
- errorDetail: null,
+ errorContext: '## Heading 3 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 67,
+ lineNumber: 6,
},
- lineNumber: 66,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 5,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '~~~~fence',
- errorDetail: null,
+ errorContext: '## Heading 4 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 68,
},
- lineNumber: 68,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 7,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
+ ],
+ fixed: `# Heading 1␊
+ ␊
+ ## Heading 2 {MD022}␊
+ ␊
+ Some text␊
+ ␊
+ ## Heading 3 {MD022}␊
+ ␊
+ Some text␊
+ ␊
+ ## Heading 4 {MD022}␊
+ ␊
+ ## Heading 5␊
+ ␊
+ * This shouldn't trigger MD022, but did because of some bug where we tried to␊
+ #catch headings that kramdown didn't parse correctly.␊
+ `,
+ }
+
+## headings_surrounding_space_setext.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '~~~~~',
- errorDetail: null,
+ errorContext: 'Heading 2 {MD022}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 73,
+ lineNumber: 6,
},
- lineNumber: 72,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 4,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
- fixInfo: null,
- lineNumber: 8,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 6,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
- fixInfo: null,
- lineNumber: 18,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 9,
+ },
+ lineNumber: 6,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
- fixInfo: null,
- lineNumber: 32,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ },
+ lineNumber: 9,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025}',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
- fixInfo: null,
- lineNumber: 45,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ fixInfo: {
+ insertText: `␊
+ `,
+ lineNumber: 12,
+ },
+ lineNumber: 9,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025} Head...',
+ errorDetail: null,
errorRange: null,
fixInfo: null,
- lineNumber: 56,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ lineNumber: 6,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: backtick; Actual: tilde',
+ errorContext: 'Some text {MD022} {MD025} Head...',
+ errorDetail: null,
errorRange: null,
fixInfo: null,
- lineNumber: 68,
- ruleDescription: 'Code fence style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md048.md',
+ lineNumber: 9,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD048',
- 'code-fence-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
],
- fixed: `# heading␊
+ fixed: `Heading 1␊
+ =========␊
␊
- text {MD031:4}␊
+ Heading 2 {MD022}␊
+ -----------------␊
␊
- \`\`\`fence␊
- code {MD031:6}␊
- \`\`\`␊
+ Some text {MD022} {MD025}␊
+ Heading 3␊
+ =================␊
␊
- text {MD031:8} {MD048:8}␊
+ Some text {MD022} {MD025}␊
+ Heading 4␊
+ =================␊
␊
- ~~~fence␊
- code␊
- ~~~␊
+ Some text␊
␊
- text {MD031:10} {MD031:12}␊
- ␊
- \`\`\`fence␊
- ~~~fence␊
- code␊
- ~~~␊
- \`\`\`␊
- ␊
- text {MD031:16} {MD031:18} {MD048:18}␊
- ␊
- ~~~fence␊
- \`\`\`fence␊
- code␊
- \`\`\`␊
- ~~~␊
- ␊
- text {MD031:22} {MD031:24}␊
- ␊
- \`\`\`fence␊
- ␊
- ~~~fence␊
- code␊
- ~~~␊
- ␊
- \`\`\`␊
- ␊
- text {MD031:30} {MD031:32} {MD048:32}␊
- ␊
- ~~~fence␊
- ␊
- \`\`\`fence␊
- code␊
- \`\`\`␊
- ␊
- ~~~␊
- ␊
- text {MD031:38} {MD031:40}␊
- ␊
- \`\`\`fence␊
- code␊
- ~~~␊
- \`\`\`␊
- ␊
- text {MD031:43} {MD031:45} {MD048:45}␊
- ␊
- ~~~fence␊
- code␊
- \`\`\`␊
- ~~~␊
- ␊
- text {MD031:48} {MD031:50}␊
- ␊
- \`\`\`\`fence␊
- \`\`\`fence␊
- code␊
- \`\`\`␊
- \`\`\`\`␊
- ␊
- text {MD031:54} {MD031:56} {MD048:56}␊
- ␊
- ~~~~fence␊
- ~~~fence␊
- code␊
- ~~~␊
- ~~~~␊
- ␊
- text {MD031:60} {MD031:62}␊
- ␊
- \`\`\`\`fence␊
- \`\`\`fence␊
- code␊
- \`\`\`␊
- \`\`\`\`\`␊
- ␊
- text {MD031:66} {MD031:68} {MD048:68}␊
- ␊
- ~~~~fence␊
- ~~~fence␊
- code␊
- ~~~␊
- ~~~~~␊
- ␊
- text {MD031:72}␊
+ Heading 5␊
+ ---------␊
`,
}
-## fenced_code_without_blank_lines.md
+## headings_with_spaces_at_the_beginning.md
> Snapshot 1
{
errors: [
{
- errorContext: '```',
- errorDetail: null,
+ errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 12,
},
- lineNumber: 12,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 19,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '```',
- errorDetail: null,
+ errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)',
+ errorDetail: 'Expected: 1; Actual: 0; Below',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 15,
+ lineNumber: 20,
},
- lineNumber: 14,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 19,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '```',
- errorDetail: null,
+ errorContext: '# Test {MD022} {MD023} Also valid heading for CommonMark',
+ errorDetail: 'Expected: 1; Actual: 0; Above',
errorRange: null,
fixInfo: {
insertText: `␊
`,
- lineNumber: 20,
},
- lineNumber: 19,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 20,
+ ruleDescription: 'Headings should be surrounded by blank lines',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD022',
+ 'blanks-around-headings',
],
},
{
- errorContext: '```',
+ errorContext: ' # Heading 1 {MD023}',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 1,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 23,
+ deleteCount: 1,
+ editColumn: 1,
},
- lineNumber: 23,
- ruleDescription: 'Fenced code blocks should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md031.md',
+ lineNumber: 3,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
ruleNames: [
- 'MD031',
- 'blanks-around-fences',
+ 'MD023',
+ 'heading-start-left',
],
},
{
- errorContext: null,
+ errorContext: ' Setext style fully indented {...',
errorDetail: null,
errorRange: [
- 3,
+ 1,
1,
],
fixInfo: {
- editColumn: 4,
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 1,
},
- lineNumber: 47,
- ruleDescription: 'Files should end with a single newline character',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
+ lineNumber: 5,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
ruleNames: [
- 'MD047',
- 'single-trailing-newline',
+ 'MD023',
+ 'heading-start-left',
+ ],
+ },
+ {
+ errorContext: ' Setext style title only inden...',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 1,
+ },
+ lineNumber: 8,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ ruleNames: [
+ 'MD023',
+ 'heading-start-left',
+ ],
+ },
+ {
+ errorContext: ' # Test {MD022} {MD023} Als...',
+ errorDetail: null,
+ errorRange: [
+ 3,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 3,
+ },
+ lineNumber: 20,
+ ruleDescription: 'Headings must start at the beginning of the line',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ ruleNames: [
+ 'MD023',
+ 'heading-start-left',
],
},
],
- fixed: `\`\`\`␊
- code at start of file␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`ruby␊
- code␊
- \`\`\`␊
- ␊
- text␊
- ␊
- \`\`\`␊
- code␊
- \`\`\`␊
- ␊
- text {MD031:12} {MD031:14}␊
+ fixed: `Some text␊
␊
- \`\`\`␊
- code␊
- \`\`\`␊
+ # Heading 1 {MD023}␊
␊
- text {MD031:19}␊
+ Setext style fully indented {MD023}␊
+ ===================================␊
␊
- text {MD031:23}␊
+ Setext style title only indented {MD023}␊
+ =========================================␊
␊
- \`\`\`␊
- code␊
- \`\`\`␊
+ * Test situations in which MD023 shouldn't be triggered.␊
␊
- text␊
+ \`\`\`rb␊
+ # This shouldn't trigger MD023 as it is a code comment.␊
+ foo = "And here is some code"␊
+ \`\`\`␊
␊
- \`\`\`js␊
- code␊
- code␊
- code␊
- \`\`\`␊
+ * This is another case where MD023 shouldn't be triggered␊
␊
- \`\`\`html␊
- \`\`\`␊
+ # Test {MD022} Valid heading for CommonMark (see section 5.2)␊
␊
- text␊
+ # Test {MD022} {MD023} Also valid heading for CommonMark␊
␊
␊
- ␊
- \`\`\`␊
- code at end of file without newline {MD047:47}␊
- \`\`\`␊
`,
}
-## first_heading_bad_atx.md
+## heading_duplicate_content.md
> Snapshot 1
{
- errors: [],
- fixed: `## Heading␊
+ errors: [
+ {
+ errorContext: 'Heading 1',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
+ ],
+ },
+ {
+ errorContext: 'Heading 2',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
+ ],
+ },
+ ],
+ fixed: `# Heading 1␊
␊
- ␊
+ ## Heading 2␊
+ ␊
+ ## Heading 1␊
+ ␊
+ ### Heading 2␊
+ ␊
+ ## Heading 3␊
+ ␊
+ {MD024:5} {MD024:7}␊
`,
}
-## first_heading_bad_setext.md
+## heading_duplicate_content_different_nesting.md
> Snapshot 1
{
errors: [],
- fixed: `Heading␊
- -------␊
+ fixed: `# Change log␊
+ ␊
+ ## 2.0.0␊
+ ␊
+ ### Bug fixes␊
+ ␊
+ ### Features␊
+ ␊
+ ## 1.0.0␊
+ ␊
+ ### Bug fixes␊
␊
␊
`,
}
-## first_heading_good_atx.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading␊
- `,
- }
-
-## first_heading_good_setext.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `Heading␊
- =======␊
- `,
- }
-
-## first_line_top_level_heading_atx.md
+## heading_duplicate_content_no_different_nesting.md
> Snapshot 1
{
- errors: [],
- fixed: `# First line is a top level heading␊
+ errors: [
+ {
+ errorContext: 'Bug fixes',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Multiple headings with the same content',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleNames: [
+ 'MD024',
+ 'no-duplicate-heading',
+ ],
+ },
+ ],
+ fixed: `# Change log␊
␊
- This shouldn't trigger MD041␊
+ ## 2.0.0␊
+ ␊
+ ### Bug fixes␊
+ ␊
+ ### Features␊
+ ␊
+ ## 1.0.0␊
+ ␊
+ ### Bug fixes␊
+ ␊
+ {MD024:11}␊
`,
}
-## first_line_top_level_heading_setext.md
+## heading_multiple_toplevel.md
> Snapshot 1
{
- errors: [],
- fixed: `First line top level heading␊
- ============================␊
+ errors: [
+ {
+ errorContext: 'Heading 2 {MD025}',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
+ ],
+ },
+ ],
+ fixed: `# Heading 1␊
␊
- This shouldn't trigger MD041␊
+ # Heading 2 {MD025}␊
+ ␊
+ ␊
+ # Not heading␊
+
␊
+ ␊
+ ␊
`,
}
-## fix_102_extra_nodes_in_link_text.md
+## heading_mutliple_h1_no_toplevel.md
> Snapshot 1
{
errors: [],
- fixed: `# fix_102_extra_nodes_in_link_text␊
+ fixed: `Some introductory text␊
␊
- [test _test_ test](www.test.com)␊
- [test \`test\` test](www.test.com)␊
- [test *test* test](www.test.com)␊
- [test *test* *test* test](www.test.com)␊
- [test *test* *test* *test* test](www.test.com)␊
- [test **test** test](www.test.com)␊
- [test __test__ test](www.test.com)␊
- [this should not raise](www.shouldnotraise.com)␊
+ # Heading 1␊
␊
- ␊
+ # Heading 2␊
+ ␊
+ ␊
`,
}
-## fixing-with-front-matter.md
+## heading_trailing_punctuation.md
> Snapshot 1
@@ -13362,213 +14005,269 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 3',
+ errorDetail: 'Punctuation: \' .\'',
errorRange: [
- 23,
- 3,
+ 19,
+ 2,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 23,
+ deleteCount: 2,
+ editColumn: 19,
},
- lineNumber: 6,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 3,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: '# Fixing with Front Matter {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Punctuation: \' ,\'',
+ errorRange: [
+ 19,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
- lineNumber: 6,
+ deleteCount: 2,
+ editColumn: 19,
},
lineNumber: 5,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: '## Nested Heading {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Punctuation: \' ;\'',
+ errorRange: [
+ 19,
+ 2,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 2,
+ editColumn: 19,
},
- lineNumber: 9,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 7,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: '[ link ]',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Punctuation: \' :\'',
errorRange: [
- 6,
- 8,
+ 19,
+ 2,
],
fixInfo: {
- deleteCount: 6,
- editColumn: 7,
- insertText: 'link',
+ deleteCount: 2,
+ editColumn: 19,
},
- lineNumber: 8,
- ruleDescription: 'Spaces inside link text',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md039.md',
+ lineNumber: 9,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD039',
- 'no-space-in-links',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
errorContext: null,
- errorDetail: null,
+ errorDetail: 'Punctuation: \' !\'',
errorRange: [
- 12,
- 1,
+ 19,
+ 2,
],
fixInfo: {
- editColumn: 13,
- insertText: `␊
- `,
+ deleteCount: 2,
+ editColumn: 19,
},
lineNumber: 11,
- ruleDescription: 'Files should end with a single newline character',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md',
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD047',
- 'single-trailing-newline',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
- ],
- fixed: `---␊
- front: matter␊
- ignore: this␊
- ---␊
- # Fixing with Front Matter {MD022}␊
- ␊
- Text text text {MD009}␊
- ␊
- Text [link](url) text {MD039}␊
- ␊
- ## Nested Heading {MD022}␊
- ␊
- Text {MD047}␊
- `,
- }
-
-## front-matter-alt-title-h1.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Top level heading {MD025}',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 4,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ errorContext: null,
+ errorDetail: 'Punctuation: \' 。\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 15,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' ,\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 17,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' ;\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 19,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' :\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 21,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' !\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 23,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' !\'',
+ errorRange: [
+ 29,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 29,
+ },
+ lineNumber: 29,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \' !\'',
+ errorRange: [
+ 30,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 30,
+ },
+ lineNumber: 31,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
],
- fixed: `---␊
- alternate="Welcome to Jekyll!"␊
- ---␊
- # Top level heading {MD025}␊
+ fixed: `# Heading Trailing Punctuation␊
␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
+ ## Heading {MD026}␊
␊
- ␊
- `,
- }
-
-## front-matter-alt-title-json.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `{␊
- "date": "2017-01-26T22:17:00+02:00",␊
- "alternate": "My document title and heading"␊
- }␊
+ ## Heading {MD026}␊
␊
- Some plain text here.␊
+ ## Heading {MD026}␊
␊
- ␊
- `,
- }
-
-## front-matter-alt-title-no-h1.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- alternate="Welcome to Jekyll!"␊
- ---␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
+ ## Heading {MD026}␊
␊
- ␊
- `,
- }
-
-## front-matter-alt-title-toml.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++␊
- date = "2017-01-26T22:17:00+02:00"␊
- alternate = "My document title and heading"␊
- +++␊
+ ## Heading {MD026}␊
␊
- Some plain text here.␊
+ ## Heading?␊
␊
- ␊
+ ## Heading/Full-Width {MD026}␊
+ ␊
+ ## Heading/Full-Width {MD026}␊
+ ␊
+ ## Heading/Full-Width {MD026}␊
+ ␊
+ ## Heading/Full-Width {MD026}␊
+ ␊
+ ## Heading/Full-Width {MD026}␊
+ ␊
+ ## Heading/Full-Width?␊
+ ␊
+ ␊
+ ␊
+ ## Heading {MD026} alternate ##␊
+ ␊
+ Heading {MD026} alternate too␊
+ -------------------------------␊
`,
}
-## front-matter-alternate.md
+## heading_trailing_punctuation_customized.md
> Snapshot 1
@@ -13576,479 +14275,313 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0; Actual: 1',
+ errorDetail: 'Punctuation: \'.\'',
errorRange: [
- 13,
+ 20,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 13,
+ editColumn: 20,
},
- lineNumber: 6,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 1,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: 'Text {MD041}',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 4,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
+ errorContext: null,
+ errorDetail: 'Punctuation: \',\'',
+ errorRange: [
+ 21,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 3,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
- ],
- fixed: `---␊
- front: matter␊
- ---␊
- Text {MD041}␊
- ␊
- Text {MD009}␊
- ␊
- ␊
- `,
- }
-
-## front-matter-embedded.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Column: 6',
+ errorDetail: 'Punctuation: \':\'',
errorRange: [
- 6,
+ 21,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 6,
- insertText: ' ',
+ editColumn: 21,
},
- lineNumber: 5,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 7,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
{
- errorContext: 'layout: post {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Punctuation: \';\'',
+ errorRange: [
+ 21,
+ 1,
+ ],
fixInfo: {
- insertText: `␊
- `,
+ deleteCount: 1,
+ editColumn: 21,
},
- lineNumber: 4,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ lineNumber: 9,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \'?\'',
+ errorRange: [
+ 21,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 11,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Punctuation: \']\'',
+ errorRange: [
+ 21,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 13,
+ ruleDescription: 'Trailing punctuation in heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleNames: [
+ 'MD026',
+ 'no-trailing-punctuation',
],
},
],
- fixed: `Text text text␊
+ fixed: `# Heading 1 {MD026}␊
␊
- ---␊
+ ## Heading 2 {MD026}␊
␊
- layout: post {MD022}␊
- hard: tab {MD010}␊
- title: embedded␊
- ---␊
+ ## Heading 3!␊
␊
- Text text text␊
+ ## Heading 4 {MD026}␊
+ ␊
+ ## Heading 5 {MD026}␊
+ ␊
+ ## Heading 6 {MD026}␊
+ ␊
+ ## Heading 7 {MD026}␊
+ ␊
+ The rule has been customized to allow exclamation point while disallowing␊
+ everything else.␊
␊
␊
`,
}
-## front-matter-empty-title-no-h1.md
+## heading_trailing_punctuation_empty.md
> Snapshot 1
{
- errors: [
- {
- errorContext: 'Front matter from [Jekyll docu...',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
- ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
- ],
- },
- ],
- fixed: `---␊
- layout: post␊
- title: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- ---␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊
+ errors: [],
+ fixed: `# Heading Trailing Punctuation␊
+ ␊
+ ## Heading .␊
+ ␊
+ ## Heading ,␊
+ ␊
+ ## Heading ;␊
+ ␊
+ ## Heading :␊
+ ␊
+ ## Heading !␊
+ ␊
+ ## Heading ?␊
␊
␊
`,
}
-## front-matter-empty.md
+## hr-in-blockquote-dash.md
> Snapshot 1
{
errors: [
{
- errorContext: 'Another {MD025}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
errorRange: null,
fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
],
},
- ],
- fixed: `---␊
- ---␊
- # Heading␊
- ␊
- # Another {MD025}␊
- `,
- }
-
-## front-matter-no-crlf.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- front: matter␊
- ---`,
- }
-
-## front-matter-no-title-h1.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- layout: post␊
- notitle: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- ---␊
- # Top level heading␊
- ␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
- ␊
- ␊
- `,
- }
-
-## front-matter-no-title-no-h1.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Front matter from [Jekyll docu...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ___',
errorRange: null,
fixInfo: null,
lineNumber: 7,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
+ 'MD035',
+ 'hr-style',
],
},
- ],
- fixed: `---␊
- layout: post␊
- notitle: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- ---␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊
- ␊
- ␊
- `,
- }
-
-## front-matter-title-h1.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Top level heading {MD025}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 15,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: - - -',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 33,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `---␊
- layout: post␊
- title: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- ---␊
- # Top level heading {MD025}␊
- ␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
- ␊
- ␊
- `,
- }
-
-## front-matter-title-h2.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- layout: post␊
- title: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- ---␊
- ## Secondary heading␊
- ␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
- ␊
- ␊
- `,
- }
-
-## front-matter-title-json-spaces.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `{␊
- "date": "2017-01-26T22:17:00+02:00",␊
- "title": "My document title and heading"␊
- } ␊
- ␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-title-json.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `{␊
- "date": "2017-01-26T22:17:00+02:00",␊
- "title": "My document title and heading"␊
- }␊
+ fixed: `# HR in Blockquote, Dash␊
␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-title-no-h1.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- layout: post␊
- title: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
---␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
- ␊
- ␊
- `,
- }
-
-## front-matter-title-pandoc-spaces.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++ ␊
- title: "Welcome to pandoc!"␊
- date: 2015-11-17 16:16:01 -0600␊
- ... ␊
␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-title-pandoc.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++␊
- title: "Welcome to pandoc!"␊
- date: 2015-11-17 16:16:01 -0600␊
- ...␊
+ ***␊
␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-title-spaces.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `--- ␊
- layout: post␊
- title: "Welcome to Jekyll!"␊
- date: 2015-11-17 16:16:01 -0600␊
- categories: jekyll update␊
- --- ␊
+ ___␊
␊
- Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊
+ {MD035:5} {MD035:7}␊
␊
- ␊
- `,
- }
-
-## front-matter-title-toml-spaces.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++ ␊
- date = "2017-01-26T22:17:00+02:00"␊
- title = "My document title and heading"␊
- +++ ␊
+ > Text␊
+ >␊
+ > ---␊
+ >␊
+ > ***␊
+ >␊
+ > ___␊
+ >␊
+ > Text␊
␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-title-toml.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++␊
- date = "2017-01-26T22:17:00+02:00"␊
- title = "My document title and heading"␊
- +++␊
+ {MD035:15} {MD035:17}␊
␊
- Some plain text here.␊
- `,
- }
-
-## front-matter-with-dashes.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Column: 1',
- errorRange: [
- 1,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: ' ',
- },
- lineNumber: 10,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
- ],
- },
- ],
- fixed: `---␊
- layout: post␊
- title: Title with ---␊
- tags: front matter␊
- ---␊
- ## Heading␊
+ - - -␊
␊
- ---␊
+ > Text␊
+ >␊
+ > > Text␊
+ > >␊
+ > > ---␊
+ > >␊
+ > > ***␊
+ > >␊
+ > > ___␊
+ > >␊
+ > > Text␊
+ >␊
+ > Text␊
␊
- Hard tab {MD010}␊
+ {MD035:23} {MD035:31} {MD035:33}␊
`,
}
-## front-matter-with-disable-next-line.md
+## hr-in-blockquote-star.md
> Snapshot 1
@@ -14056,841 +14589,543 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
- fixInfo: null,
- lineNumber: 10,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 16,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
fixInfo: null,
- lineNumber: 20,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: * * *',
+ errorRange: null,
fixInfo: null,
- lineNumber: 22,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 23,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 29,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
fixInfo: null,
- lineNumber: 25,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 33,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
- {
- errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ ],
+ fixed: `# HR in Blockquote, Star␊
+ ␊
+ ***␊
+ ␊
+ ___␊
+ ␊
+ ---␊
+ ␊
+ {MD035:5} {MD035:7}␊
+ ␊
+ > Text␊
+ >␊
+ > ---␊
+ >␊
+ > ***␊
+ >␊
+ > ___␊
+ >␊
+ > Text␊
+ ␊
+ {MD035:13} {MD035:17}␊
+ ␊
+ * * *␊
+ ␊
+ > Text␊
+ >␊
+ > > Text␊
+ > >␊
+ > > ---␊
+ > >␊
+ > > ***␊
+ > >␊
+ > > ___␊
+ > >␊
+ > > Text␊
+ >␊
+ > Text␊
+ ␊
+ {MD035:23} {MD035:29} {MD035:33}␊
+ `,
+ }
+
+## hr-in-blockquote-under.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 26,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 28,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 29,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 31,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 15,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: _ _ _',
+ errorRange: null,
fixInfo: null,
- lineNumber: 32,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 23,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: ---',
+ errorRange: null,
fixInfo: null,
- lineNumber: 34,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 29,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: hr',
- errorRange: [
- 1,
- 5,
- ],
+ errorDetail: 'Expected: ___; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 35,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 31,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `---␊
- front: matter␊
- ---␊
- ␊
- # Front Matter with Disable-Next-Line␊
- ␊
- ␊
-
␊
- ␊
-
{MD033}␊
- ␊
- ␊
-
␊
- ␊
-
{MD033}␊
-
{MD033}␊
- ␊
-
␊
-
{MD033}␊
-
{MD033}␊
- ␊
-
{MD033}␊
-
{MD033}␊
-
␊
-
{MD033}␊
-
{MD033}␊
-
␊
-
{MD033}␊
-
{MD033}␊
-
␊
-
{MD033}␊
-
{MD033}␊
-
␊
-
{MD033}␊
-
{MD033}␊
- `,
- }
-
-## front-matter-yaml-in-html-comment.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `␊
+ fixed: `# HR in Blockquote, Under␊
␊
- # Front Matter YAML in HTML Comment␊
+ ___␊
␊
- Text text text␊
- `,
- }
-
-## front-matter.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `---␊
- front: matter␊
---␊
- # Heading 1␊
- ␊
- ## Heading 2␊
- `,
- }
-
-## github-footnote-syntax.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# GitHub Footnote Syntax␊
- ␊
- > Example from ␊
- ␊
- Here is a simple footnote[^1].␊
- ␊
- A footnote can also have multiple lines[^2].␊
␊
- You can also use words, to fit your writing style more closely[^note].␊
- ␊
- [^1]: My reference.␊
- [^2]: Every new line should be prefixed with 2 spaces.␊
- This allows you to have a footnote with multiple lines.␊
- [^note]:␊
- Named footnotes will still render with numbers instead of the text but allow easier identification and linking.␊
- This footnote also has been made with a different syntax using 4 spaces for new lines.␊
- ␊
- ␊
- `,
- }
-
-## h1-as-top-level-heading.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `H1 as Top-Level Heading
␊
+ ***␊
␊
- Text␊
+ {MD035:5} {MD035:7}␊
␊
- ␊
- `,
- }
-
-## h1-image-as-top-level-heading.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `␊
+ > Text␊
+ >␊
+ > ---␊
+ >␊
+ > ***␊
+ >␊
+ > ___␊
+ >␊
+ > Text␊
␊
- Text␊
+ {MD035:13} {MD035:15}␊
␊
- ␊
- `,
- }
-
-## h2-as-top-level-heading.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `H2 as Top-Level Heading
␊
+ _ _ _␊
␊
- Text␊
+ > Text␊
+ >␊
+ > > Text␊
+ > >␊
+ > > ---␊
+ > >␊
+ > > ***␊
+ > >␊
+ > > ___␊
+ > >␊
+ > > Text␊
+ >␊
+ > Text␊
␊
- ␊
+ {MD035:23} {MD035:29} {MD035:31}␊
`,
}
-## h3-as-top-level-heading.md
+## hr-in-list-dash.md
> Snapshot 1
{
errors: [
{
- errorContext: 'H3 as Top-Level Heading {M...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 1,
- ruleDescription: 'First line in a file should be a top-level heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD041',
- 'first-line-heading',
- 'first-line-h1',
+ 'MD035',
+ 'hr-style',
],
},
- ],
- fixed: `H3 as Top-Level Heading {MD041}
␊
- ␊
- Text␊
- ␊
- ␊
- `,
- }
-
-## hard-line-breaks.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 4',
- errorRange: [
- 5,
- 4,
- ],
- fixInfo: {
- deleteCount: 4,
- editColumn: 5,
- },
- lineNumber: 9,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 6,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 6,
- },
- lineNumber: 24,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: - ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 14,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 4,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 4,
- },
- lineNumber: 32,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 16,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 8,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 8,
- },
- lineNumber: 36,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 18,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 1,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- },
- lineNumber: 39,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: * ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 26,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 1,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- },
- lineNumber: 41,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ---; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 28,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 4',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: {
- deleteCount: 4,
- editColumn: 1,
- },
- lineNumber: 43,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
- ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 10,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 10,
- },
- lineNumber: 48,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
- ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 5,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 5,
- },
- lineNumber: 54,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
- ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
+ ],
+ fixed: `# HR in List, Dash␊
+ ␊
+ ---␊
+ ␊
+ ***␊
+ ␊
+ ___␊
+ ␊
+ {MD035:5} {MD035:7}␊
+ ␊
+ ␊
+ ␊
+ - list␊
+ - ---␊
+ - list␊
+ - ***␊
+ - list␊
+ - ___␊
+ - list␊
+ ␊
+ {MD035:14} {MD035:16} {MD035:18}␊
+ ␊
+ * list␊
+ * ---␊
+ * list␊
+ * ***␊
+ * list␊
+ * ___␊
+ * list␊
+ ␊
+ {MD035:26} {MD035:28}␊
+ `,
+ }
+
+## hr-in-list-star.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 11,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 11,
- },
- lineNumber: 58,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 11,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 11,
- },
- lineNumber: 61,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 10,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 10,
- },
- lineNumber: 62,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: - ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 14,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 11,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 11,
- },
- lineNumber: 63,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 18,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 10,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 10,
- },
- lineNumber: 65,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 24,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 22,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 22,
- },
- lineNumber: 67,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: * ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 26,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 2',
- errorRange: [
- 10,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 10,
- },
- lineNumber: 71,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 28,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `# Hard Line Breaks␊
- ␊
- hard ␊
- break␊
- ␊
- hard\\␊
- break␊
- ␊
- hard␊
- break␊
- ␊
- hard ␊
- break␊
- ␊
- hard\\␊
- break␊
- ␊
- *hard ␊
- break*␊
- ␊
- *hard\\␊
- break*␊
- ␊
- \`code␊
- span\`␊
- ␊
- \`code\\␊
- span\`␊
- ␊
- not\\␊
- ␊
- not␊
- ␊
- ## not\\␊
- ␊
- ### not␊
- ␊
- - Item␊
- ␊
- - Item␊
- ␊
- - Item␊
- ␊
- - Item␊
+ fixed: `# HR in List, Star␊
␊
- Text text␊
- text \`code␊
- span code␊
- span\` text␊
- text␊
+ ***␊
␊
- Text text␊
- text text␊
- text␊
+ ___␊
␊
- Text text␊
- text \`code␊
- span\` text␊
+ ---␊
␊
- Text text␊
- text \`code␊
- span code␊
- span\` text␊
+ {MD035:5} {MD035:7}␊
␊
- Text text␊
+ ␊
␊
- Text \`code span\` text␊
+ - list␊
+ - ---␊
+ - list␊
+ - ***␊
+ - list␊
+ - ___␊
+ - list␊
␊
- Text text ␊
- \`code span\` ␊
- text text␊
+ {MD035:14} {MD035:18}␊
␊
- {MD009:9}␊
- {MD009:24}␊
- {MD009:32}␊
- {MD009:36}␊
- {MD009:39}␊
- {MD009:41}␊
- {MD009:43}␊
- {MD009:48}␊
- {MD009:54}␊
- {MD009:58}␊
- {MD009:61}␊
- {MD009:62}␊
- {MD009:63}␊
- {MD009:65}␊
- {MD009:67}␊
- {MD009:71}␊
+ * list␊
+ * ---␊
+ * list␊
+ * ***␊
+ * list␊
+ * ___␊
+ * list␊
␊
- ␊
+ {MD035:24} {MD035:26} {MD035:28}␊
`,
}
-## heading-duplicate-content-siblings-only.md
+## hr-in-list-under.md
> Snapshot 1
@@ -14898,472 +15133,489 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: h4; Actual: h5',
+ errorDetail: 'Expected: ___; Actual: ---',
errorRange: null,
fixInfo: null,
- lineNumber: 27,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD001',
- 'heading-increment',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'B',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'C',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: - ---',
errorRange: null,
fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 14,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'G',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 35,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 16,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'E',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: ---',
errorRange: null,
fixInfo: null,
- lineNumber: 39,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 24,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'A',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ___; Actual: * ***',
errorRange: null,
fixInfo: null,
- lineNumber: 43,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 26,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
+ ],
+ fixed: `# HR in List, Under␊
+ ␊
+ ___␊
+ ␊
+ ---␊
+ ␊
+ ***␊
+ ␊
+ {MD035:5} {MD035:7}␊
+ ␊
+ ␊
+ ␊
+ - list␊
+ - ---␊
+ - list␊
+ - ***␊
+ - list␊
+ - ___␊
+ - list␊
+ ␊
+ {MD035:14} {MD035:16}␊
+ ␊
+ * list␊
+ * ---␊
+ * list␊
+ * ***␊
+ * list␊
+ * ___␊
+ * list␊
+ ␊
+ {MD035:24} {MD035:26}␊
+ `,
+ }
+
+## hr-style-custom.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'B',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: - - -; Actual: ---',
errorRange: null,
fixInfo: null,
- lineNumber: 51,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'Heading duplicate content sibl...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: - - -; Actual: - - -',
errorRange: null,
fixInfo: null,
- lineNumber: 55,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 10,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'BB',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: - - -; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 73,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 19,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
+ ],
+ fixed: `# HR Style Custom␊
+ ␊
+ Text␊
+ ␊
+ ---␊
+ {MD035:5}␊
+ ␊
+ Text␊
+ ␊
+ - - -␊
+ {MD035:10}␊
+ ␊
+ Text␊
+ ␊
+ - - -␊
+ ␊
+ Text␊
+ ␊
+ ***␊
+ {MD035:19}␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ `,
+ }
+
+## hr_style_dashes.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'BBB',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
errorRange: null,
fixInfo: null,
- lineNumber: 94,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ lineNumber: 3,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'A',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: * * *',
errorRange: null,
fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'A',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: *****',
errorRange: null,
fixInfo: null,
- lineNumber: 43,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'Heading duplicate content sibl...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: - - -',
errorRange: null,
fixInfo: null,
- lineNumber: 55,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 11,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'AA',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: -----',
errorRange: null,
fixInfo: null,
- lineNumber: 59,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'BB',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ___',
errorRange: null,
fixInfo: null,
- lineNumber: 78,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 15,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: _ _ _',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: _____',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `# Heading duplicate content siblings only␊
- ␊
- # A␊
- ␊
- {MD025:3}␊
- ␊
- ## B␊
- ␊
- ### C␊
- ␊
- ## B␊
- ␊
- {MD024:11}␊
- ␊
- ### C␊
- ␊
- ## D␊
- ␊
- ### C␊
- ␊
- ### E␊
- ␊
- ### C␊
- ␊
- {MD024:23}␊
- ␊
- ##### F␊
- ␊
- {MD001:27}␊
- ␊
- #### G␊
- ␊
- ##### F␊
- ␊
- #### G␊
- ␊
- {MD024:35}␊
- ␊
- ### E␊
- ␊
- {MD024:39}␊
- ␊
- # A␊
- ␊
- {MD024:43} {MD025:43}␊
- ␊
- ## B␊
- ␊
- ### C␊
- ␊
- ## B␊
- ␊
- {MD024:51}␊
- ␊
- # Heading duplicate content siblings only␊
- ␊
- {MD024:55} {MD025:55}␊
- ␊
- AA␊
- ==␊
- ␊
- {MD025:59}␊
- ␊
- AA␊
- --␊
- ␊
- BB␊
- --␊
- ␊
- CC␊
- --␊
+ fixed: `# hr_style_dashes␊
␊
- BB␊
- --␊
+ ***␊
␊
- {MD024:73}␊
+ * * *␊
␊
- BB␊
- ==␊
+ *****␊
␊
- {MD025:78}␊
+ ---␊
␊
- BB␊
- --␊
+ - - -␊
␊
- ## AAA ##␊
+ -----␊
␊
- ### BBB ###␊
+ ___␊
␊
- ## BBB ##␊
+ _ _ _␊
␊
- ### BBB ###␊
+ _____␊
␊
- ## BBB ##␊
+ ***␊
␊
- {MD024:94}␊
+ {MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13}␊
+ {MD035:15} {MD035:17} {MD035:19} {MD035:21}␊
␊
␊
`,
}
-## heading_duplicate_content.md
+## hr_style_inconsistent.md
> Snapshot 1
{
errors: [
{
- errorContext: 'Heading 1',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: * * *',
errorRange: null,
fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
{
- errorContext: 'Heading 2',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: *****',
errorRange: null,
fixInfo: null,
lineNumber: 7,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
- ],
- fixed: `# Heading 1␊
- ␊
- ## Heading 2␊
- ␊
- ## Heading 1␊
- ␊
- ### Heading 2␊
- ␊
- ## Heading 3␊
- ␊
- {MD024:5} {MD024:7}␊
- `,
- }
-
-## heading_duplicate_content_different_nesting.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Change log␊
- ␊
- ## 2.0.0␊
- ␊
- ### Bug fixes␊
- ␊
- ### Features␊
- ␊
- ## 1.0.0␊
- ␊
- ### Bug fixes␊
- ␊
- ␊
- `,
- }
-
-## heading_duplicate_content_no_different_nesting.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Bug fixes',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: - - -',
errorRange: null,
fixInfo: null,
lineNumber: 11,
- ruleDescription: 'Multiple headings with the same content',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md024.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD024',
- 'no-duplicate-heading',
+ 'MD035',
+ 'hr-style',
],
},
- ],
- fixed: `# Change log␊
- ␊
- ## 2.0.0␊
- ␊
- ### Bug fixes␊
- ␊
- ### Features␊
- ␊
- ## 1.0.0␊
- ␊
- ### Bug fixes␊
- ␊
- {MD024:11}␊
- `,
- }
-
-## heading_multiple_toplevel.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Heading 2 {MD025}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: -----',
errorRange: null,
fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: _ _ _',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: _____',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `# Heading 1␊
+ fixed: `# hr_style_inconsistent␊
␊
- # Heading 2 {MD025}␊
+ ***␊
␊
-
␊
- # Not heading␊
-
␊
+ * * *␊
␊
- ␊
- `,
- }
-
-## heading_mutliple_h1_no_toplevel.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `Some introductory text␊
+ *****␊
␊
- # Heading 1␊
+ ---␊
␊
- # Heading 2␊
+ - - -␊
␊
- ␊
+ -----␊
+ ␊
+ ___␊
+ ␊
+ _ _ _␊
+ ␊
+ _____␊
+ ␊
+ ***␊
+ ␊
+ {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊
`,
}
-## heading_trailing_punctuation.md
+## hr_style_long.md
> Snapshot 1
@@ -15371,964 +15623,788 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Punctuation: \' .\'',
- errorRange: [
- 19,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 19,
- },
+ errorDetail: 'Expected: _____; Actual: ***',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 3,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' ,\'',
- errorRange: [
- 19,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 19,
- },
+ errorDetail: 'Expected: _____; Actual: * * *',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' ;\'',
- errorRange: [
- 19,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 19,
- },
+ errorDetail: 'Expected: _____; Actual: *****',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 7,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' :\'',
- errorRange: [
- 19,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 19,
- },
+ errorDetail: 'Expected: _____; Actual: ---',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 9,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' !\'',
- errorRange: [
- 19,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 19,
- },
+ errorDetail: 'Expected: _____; Actual: - - -',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 11,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' 。\'',
- errorRange: [
- 30,
- 2,
+ errorDetail: 'Expected: _____; Actual: -----',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: _____; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 15,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' ,\'',
- errorRange: [
- 30,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
+ errorDetail: 'Expected: _____; Actual: _ _ _',
+ errorRange: null,
+ fixInfo: null,
lineNumber: 17,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' ;\'',
- errorRange: [
- 30,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
- lineNumber: 19,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ errorDetail: 'Expected: _____; Actual: ***',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
+ ],
+ fixed: `# hr_style_long␊
+ ␊
+ ***␊
+ ␊
+ * * *␊
+ ␊
+ *****␊
+ ␊
+ ---␊
+ ␊
+ - - -␊
+ ␊
+ -----␊
+ ␊
+ ___␊
+ ␊
+ _ _ _␊
+ ␊
+ _____␊
+ ␊
+ ***␊
+ ␊
+ {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}␊
+ {MD035:17} {MD035:21}␊
+ ␊
+ ␊
+ `,
+ }
+
+## hr_style_stars.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Punctuation: \' :\'',
- errorRange: [
- 30,
- 2,
+ errorDetail: 'Expected: ***; Actual: * * *',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
- lineNumber: 21,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: *****',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' !\'',
- errorRange: [
- 30,
- 2,
+ errorDetail: 'Expected: ***; Actual: ---',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
- lineNumber: 23,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: - - -',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' !\'',
- errorRange: [
- 29,
- 2,
+ errorDetail: 'Expected: ***; Actual: -----',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 13,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 29,
- },
- lineNumber: 29,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: ___',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Punctuation: \' !\'',
- errorRange: [
- 30,
- 2,
+ errorDetail: 'Expected: ***; Actual: _ _ _',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleNames: [
+ 'MD035',
+ 'hr-style',
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 30,
- },
- lineNumber: 31,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ***; Actual: _____',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD035',
+ 'hr-style',
],
},
],
- fixed: `# Heading Trailing Punctuation␊
- ␊
- ## Heading {MD026}␊
- ␊
- ## Heading {MD026}␊
- ␊
- ## Heading {MD026}␊
+ fixed: `# hr_style_stars␊
␊
- ## Heading {MD026}␊
+ ***␊
␊
- ## Heading {MD026}␊
+ * * *␊
␊
- ## Heading?␊
+ *****␊
␊
- ## Heading/Full-Width {MD026}␊
+ ---␊
␊
- ## Heading/Full-Width {MD026}␊
+ - - -␊
␊
- ## Heading/Full-Width {MD026}␊
+ -----␊
␊
- ## Heading/Full-Width {MD026}␊
+ ___␊
␊
- ## Heading/Full-Width {MD026}␊
+ _ _ _␊
␊
- ## Heading/Full-Width?␊
+ _____␊
␊
- ␊
+ ***␊
␊
- ## Heading {MD026} alternate ##␊
+ {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊
␊
- Heading {MD026} alternate too␊
- -------------------------------␊
+ ␊
`,
}
-## heading_trailing_punctuation_customized.md
+## html-comment-in-code-and-table.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Punctuation: \'.\'',
- errorRange: [
- 20,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 20,
- },
- lineNumber: 1,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
- ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Punctuation: \',\'',
+ errorContext: '`{MD038} `',
+ errorDetail: null,
errorRange: [
- 21,
1,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 8,
+ editColumn: 2,
+ insertText: '{MD038}',
},
lineNumber: 3,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
- ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Punctuation: \':\'',
- errorRange: [
- 21,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 7,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Punctuation: \';\'',
+ errorContext: '`{MD038} `',
+ errorDetail: null,
errorRange: [
- 21,
- 1,
+ 3,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 8,
+ editColumn: 4,
+ insertText: '{MD038}',
},
- lineNumber: 9,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ lineNumber: 15,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Punctuation: \'?\'',
+ errorContext: '`{MD038} `',
+ errorDetail: null,
errorRange: [
- 21,
- 1,
+ 3,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 8,
+ editColumn: 4,
+ insertText: '{MD038}',
},
- lineNumber: 11,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ lineNumber: 19,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Punctuation: \']\'',
+ errorContext: '`{MD038} `',
+ errorDetail: null,
errorRange: [
- 21,
- 1,
+ 5,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 8,
+ editColumn: 6,
+ insertText: '{MD038}',
},
- lineNumber: 13,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
+ lineNumber: 39,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
+ 'MD038',
+ 'no-space-in-code',
],
},
],
- fixed: `# Heading 1 {MD026}␊
+ fixed: `# HTML Comment in Code and Table␊
␊
- ## Heading 2 {MD026}␊
+ \`{MD038}\`␊
␊
- ## Heading 3!␊
+ ␊
␊
- ## Heading 4 {MD026}␊
+ \`\`\`text␊
+ ␊
+ \`\`\`␊
␊
- ## Heading 5 {MD026}␊
+ ␊
␊
- ## Heading 6 {MD026}␊
+ | Table |␊
+ |------------|␊
+ | \`{MD038}\` |␊
␊
- ## Heading 7 {MD026}␊
+ * item␊
␊
- The rule has been customized to allow exclamation point while disallowing␊
- everything else.␊
+ \`{MD038}\`␊
␊
- ␊
- `,
- }
-
-## heading_trailing_punctuation_empty.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading Trailing Punctuation␊
+ * item␊
␊
- ## Heading .␊
+ ␊
␊
- ## Heading ,␊
+ * item␊
␊
- ## Heading ;␊
+ \`\`\`text␊
+ ␊
+ \`\`\`␊
␊
- ## Heading :␊
+ * item␊
␊
- ## Heading !␊
+ ␊
␊
- ## Heading ?␊
+ * item␊
+ ␊
+ | Table |␊
+ |------------|␊
+ | \`{MD038}\` |␊
␊
␊
`,
}
-## headings-with-emoji.md
+## html-comment-in-list-item.md
> Snapshot 1
{
errors: [],
- fixed: `# headings-with-emoji␊
- ␊
- ## Known Issues :bug:␊
- ␊
- ## Love :heartpulse:␊
- ␊
- ## :tada:␊
- ␊
- ## :checkered_flag:␊
- ␊
- ## :clock930:␊
- ␊
- ## :t-rex:␊
- ␊
- ## Boba:bubble_tea:␊
+ fixed: `# HTML Comment in List Item␊
␊
- ␊
+ - item␊
␊
- ## Fix the :bug: ##␊
+ ␊
␊
- Another :heartpulse:␊
- --------------------␊
+ - item␊
␊
- :eyes:␊
- ------␊
- `,
- }
-
-## headings-with-html-entities.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Punctuation: \';\'',
- errorRange: [
- 31,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 31,
- },
- lineNumber: 24,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
- ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Punctuation: \';\'',
- errorRange: [
- 34,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 34,
- },
- lineNumber: 26,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
- ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Punctuation: \';\'',
- errorRange: [
- 31,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 31,
- },
- lineNumber: 28,
- ruleDescription: 'Trailing punctuation in heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md026.md',
- ruleNames: [
- 'MD026',
- 'no-trailing-punctuation',
- ],
- },
- ],
- fixed: `# headings-with-html-entities␊
+ x␊
␊
- ␊
+ - item␊
␊
- ## Copyright © 2000␊
+ x␊
␊
- ## Copyright 2001 ©␊
+ - item␊
␊
- ## Copyright 2002©␊
+ xx␊
␊
- ## Copyright 2003 ©␊
+ - item␊
␊
- ## Copyright 2004 ©␊
+ \`\`\`html␊
+ ␊
+ \`\`\`␊
␊
- ## Copyright 2004 ©␊
+ - item␊
␊
- ## Copyright 2005 ©␊
+ \`\`\`html␊
+ x␊
+ \`\`\`␊
␊
- ## Copyright 2006 © ##␊
+ - item␊
␊
- Copyright 2007 ©␊
- ---------------------␊
+ \`\`\`html␊
+ x␊
+ \`\`\`␊
␊
- ## Copyright 2008 {MD026} copy␊
+ - item␊
␊
- ## Copyright 2009 {MD026} #x000A9␊
+ \`\`\`html␊
+ xx␊
+ \`\`\`␊
␊
- ## Copyright 2010 {MD026} #169␊
+ - item␊
`,
}
-## headings-with-invalid-spaces.md
+## html-comment-in-markdown-table.md
> Snapshot 1
{
errors: [
{
- errorContext: '## Non-breaking space {MD018}',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
- fixInfo: {
- editColumn: 3,
- insertText: ' ',
- },
- lineNumber: 7,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
- ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
- ],
- },
- {
- errorContext: '## Extra non-breaking space {...',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 1,
3,
+ 10,
],
fixInfo: {
- editColumn: 3,
- insertText: ' ',
- },
- lineNumber: 25,
- ruleDescription: 'No space after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
- ruleNames: [
- 'MD018',
- 'no-missing-space-atx',
- ],
- },
- {
- errorContext: '## Extra normal space {MD019}',
- errorDetail: null,
- errorRange: [
- 4,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 4,
- },
- lineNumber: 23,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- {
- errorContext: '## Extra Tab {MD019}',
- errorDetail: null,
- errorRange: [
- 4,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
+ deleteCount: 8,
editColumn: 4,
+ insertText: '{MD038}',
},
- lineNumber: 27,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- {
- errorContext: '## Non-breaking space (left) {...',
- errorDetail: null,
- errorRange: [
- 1,
- 3,
- ],
- fixInfo: {
- deleteCount: 39,
- editColumn: 1,
- insertText: '## Non-breaking space (left) {MD020} ##',
- },
- lineNumber: 15,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
- ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
- ],
- },
- {
- errorContext: '...aking space (right) {MD020} ##',
- errorDetail: null,
- errorRange: [
- 38,
- 3,
- ],
- fixInfo: {
- deleteCount: 40,
- editColumn: 1,
- insertText: '## Non-breaking space (right) {MD020} ##',
- },
- lineNumber: 19,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 16,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '## Extra non-breaking space (...',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 1,
3,
+ 10,
],
fixInfo: {
- deleteCount: 46,
- editColumn: 1,
- insertText: '## Extra non-breaking space (left) {MD020} ##',
+ deleteCount: 8,
+ editColumn: 4,
+ insertText: '{MD038}',
},
- lineNumber: 31,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
+ lineNumber: 22,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '...king space (right) {MD020} ##',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 45,
3,
+ 10,
],
fixInfo: {
- deleteCount: 47,
- editColumn: 1,
- insertText: '## Extra non-breaking space (right) {MD020} ##',
- },
- lineNumber: 35,
- ruleDescription: 'No space inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
- ruleNames: [
- 'MD020',
- 'no-missing-space-closed-atx',
- ],
- },
- {
- errorContext: '## Extra Normal space (both) ...',
- errorDetail: null,
- errorRange: [
- 4,
- 1,
- ],
- fixInfo: {
- deleteCount: 1,
+ deleteCount: 8,
editColumn: 4,
+ insertText: '{MD038}',
},
- lineNumber: 29,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 28,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '...ormal space (both) {MD021} ##',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 39,
- 1,
+ 11,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 39,
+ deleteCount: 8,
+ editColumn: 12,
+ insertText: '{MD038}',
},
- lineNumber: 29,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 40,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '## Extra tab (left) {MD021} #...',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 4,
- 1,
+ 11,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 4,
+ deleteCount: 8,
+ editColumn: 12,
+ insertText: '{MD038}',
},
- lineNumber: 33,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 46,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: '... Extra tab (right) {MD021} ##',
+ errorContext: '`{MD038} `',
errorDetail: null,
errorRange: [
- 30,
- 1,
+ 11,
+ 10,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 30,
+ deleteCount: 8,
+ editColumn: 12,
+ insertText: '{MD038}',
},
- lineNumber: 37,
- ruleDescription: 'Multiple spaces inside hashes on closed atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md021.md',
+ lineNumber: 52,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD021',
- 'no-multiple-space-closed-atx',
+ 'MD038',
+ 'no-space-in-code',
],
},
],
- fixed: `# Headings with invalid spaces␊
- ␊
- ## Normal space␊
- ␊
- ## Normal outer non-breaking inner space␊
- ␊
- ## Non-breaking space {MD018}␊
- ␊
- ## Tab␊
- ␊
- ## Normal space (both) ##␊
- ␊
- ## Normal outer non-breaking inner space (both) ##␊
- ␊
- ## Non-breaking space (left) {MD020} ##␊
- ␊
- ## Tab (left) ##␊
- ␊
- ## Non-breaking space (right) {MD020} ##␊
+ fixed: `# HTML Comment in Markdown Table␊
␊
- ## Tab (right) ##␊
+ \`\`\`xml␊
+ ␊
+ \`\`\`␊
␊
- ## Extra normal space {MD019}␊
+ | Table |␊
+ |-------|␊
+ | |␊
␊
- ## Extra non-breaking space {MD018}␊
+ | Table |␊
+ |------------|␊
+ | |␊
␊
- ## Extra Tab {MD019}␊
+ | Table |␊
+ |----------------|␊
+ | |␊
+ | cell |␊
␊
- ## Extra Normal space (both) {MD021} ##␊
+ | Table |␊
+ |----------------|␊
+ | |␊
+ | cell |␊
␊
- ## Extra non-breaking space (left) {MD020} ##␊
+ | Table | Table |␊
+ |-------|-------|␊
+ | cell | |␊
␊
- ## Extra tab (left) {MD021} ##␊
+ | Table | Table |␊
+ |-------|------------|␊
+ | cell | |␊
␊
- ## Extra non-breaking space (right) {MD020} ##␊
+ | Table | Table |␊
+ |-------|----------------|␊
+ | cell | |␊
+ | cell | cell |␊
␊
- ## Extra tab (right) {MD021} ##␊
+ | Table | Table |␊
+ |-------|----------------|␊
+ | cell | |␊
+ | cell | cell |␊
␊
␊
`,
}
-## headings-without-content.md
+## html-comments.md
> Snapshot 1
{
errors: [
{
- errorContext: '#',
+ errorContext: '} *',
errorDetail: null,
errorRange: [
+ 15,
3,
- 1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
+ editColumn: 16,
},
- lineNumber: 10,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
+ lineNumber: 51,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: '#',
+ errorContext: '} *',
errorDetail: null,
errorRange: [
+ 16,
3,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 3,
- },
- lineNumber: 12,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- {
- errorContext: '##',
- errorDetail: null,
- errorRange: [
- 4,
- 1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 4,
- },
- lineNumber: 18,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
- ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
- ],
- },
- {
- errorContext: '##',
- errorDetail: null,
- errorRange: [
- 4,
- 2,
- ],
- fixInfo: {
- deleteCount: 2,
- editColumn: 4,
+ editColumn: 17,
},
- lineNumber: 20,
- ruleDescription: 'Multiple spaces after hash on atx style heading',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md019.md',
+ lineNumber: 53,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD019',
- 'no-multiple-space-atx',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
],
- fixed: `# Headings Without Content␊
+ fixed: `# HTML Comments␊
␊
- ␊
- ␊
+ ## Block Comments␊
␊
- #␊
+ ␊
␊
- # ␊
+ ␊
␊
- # ␊
+ text␊
␊
- # ␊
+ ␊
␊
- ##␊
+ ␊
␊
- ## ␊
+ ␊
␊
- ## ␊
+ ␊
␊
- ## ␊
+ *text * -->␊
␊
- {MD019:10} {MD019:12} {MD019:18} {MD019:20}␊
+ *text * -->␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ## Inline Comments␊
+ ␊
+ ␊
+ ␊
+ t␊
+ ␊
+ ttext␊
+ ␊
+ t␊
+ ␊
+ t␊
+ ␊
+ t␊
+ ␊
+ t␊
+ ␊
+ t *{MD037}* -->␊
+ ␊
+ t *{MD037}* -->␊
+ ␊
+ t␊
+ ␊
+ t␊
+ ␊
+ t␊
`,
}
-## headings_bad.md
+## html-tags.md
> Snapshot 1
@@ -16336,862 +16412,904 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: h2; Actual: h3',
- errorRange: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 1,
+ 4,
+ ],
fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
+ lineNumber: 5,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD001',
- 'heading-increment',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: h3; Actual: h4',
- errorRange: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 6,
+ 4,
+ ],
fixInfo: null,
lineNumber: 7,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD001',
- 'heading-increment',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `# Heading␊
- ␊
- ### Heading 3 {MD001}␊
- ␊
- ## Heading 2␊
- ␊
- #### Heading 4 {MD001}␊
- ␊
- ␊
- ###### Not heading␊
-
␊
- ␊
- ␊
- `,
- }
-
-## headings_good.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading 1␊
- ␊
- ## Heading 2␊
- ␊
- ## Heading 3␊
- `,
- }
-
-## headings_good_setext_with_atx.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: setext; Actual: atx',
- errorRange: null,
+ errorDetail: 'Element: p',
+ errorRange: [
+ 1,
+ 3,
+ ],
fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ lineNumber: 17,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: atx; Actual: atx_closed',
- errorRange: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 7,
+ 4,
+ ],
fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ lineNumber: 19,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `Heading 1␊
- =========␊
- ␊
- Heading 2␊
- ---------␊
- ␊
- ## Heading 2 {MD003}␊
- ␊
- ### Heading 3␊
- ␊
- #### Heading 4 {MD003} ####␊
- ␊
- ␊
- `,
- }
-
-## headings_good_setext_with_atx_closed.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: setext; Actual: atx_closed',
- errorRange: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 7,
+ 4,
+ ],
fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ lineNumber: 23,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: atx_closed; Actual: atx',
- errorRange: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 36,
+ 4,
+ ],
fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ lineNumber: 24,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `Heading 1␊
- =========␊
- ␊
- Heading 2␊
- ---------␊
- ␊
- ## Heading 2 {MD003} ##␊
- ␊
- ### Heading 3 ###␊
- ␊
- #### Heading 4 {MD003}␊
- ␊
- ␊
- `,
- }
-
-## headings_good_with_issue_numbers.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Heading 1␊
- ␊
- ## Heading 2␊
- ␊
- See the following issues:␊
- ␊
- * #1234␊
- * #5678 (and related)␊
- * #5678␊
- * #9101␊
- ␊
- ## Heading 3␊
- `,
- }
-
-## headings_surrounding_space_atx.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '## Heading 2 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 4,
- },
- lineNumber: 3,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
- ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 9,
+ 4,
],
- },
- {
- errorContext: '## Heading 3 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 5,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ fixInfo: null,
+ lineNumber: 29,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: '## Heading 3 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 6,
- },
- lineNumber: 5,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 14,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: '## Heading 4 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 7,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 35,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `# Heading 1␊
- ␊
- ## Heading 2 {MD022}␊
- ␊
- Some text␊
- ␊
- ## Heading 3 {MD022}␊
- ␊
- Some text␊
- ␊
- ## Heading 4 {MD022}␊
- ␊
- ## Heading 5␊
- ␊
- * This shouldn't trigger MD022, but did because of some bug where we tried to␊
- #catch headings that kramdown didn't parse correctly.␊
- `,
- }
-
-## headings_surrounding_space_setext.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Heading 2 {MD022}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 6,
- },
- lineNumber: 4,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 6,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 37,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 6,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 6,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 41,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 9,
- },
- lineNumber: 6,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 56,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 41,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 9,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 35,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 43,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025}',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 12,
- },
- lineNumber: 9,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: problem',
+ errorRange: [
+ 3,
+ 9,
+ ],
+ fixInfo: null,
+ lineNumber: 49,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025} Head...',
- errorDetail: null,
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Element: problem',
+ errorRange: [
+ 8,
+ 9,
+ ],
fixInfo: null,
- lineNumber: 6,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 55,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'Some text {MD022} {MD025} Head...',
- errorDetail: null,
- errorRange: null,
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 8,
+ 4,
+ ],
fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 61,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD033',
+ 'no-inline-html',
],
},
- ],
- fixed: `Heading 1␊
- =========␊
- ␊
- Heading 2 {MD022}␊
- -----------------␊
- ␊
- Some text {MD022} {MD025}␊
- Heading 3␊
- =================␊
- ␊
- Some text {MD022} {MD025}␊
- Heading 4␊
- =================␊
- ␊
- Some text␊
- ␊
- Heading 5␊
- ---------␊
- `,
- }
-
-## headings_with_spaces_at_the_beginning.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 19,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: em',
+ errorRange: [
+ 18,
+ 4,
+ ],
+ fixInfo: null,
+ lineNumber: 84,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: '# Test {MD022} Valid heading for CommonMark (see section 5.2)',
- errorDetail: 'Expected: 1; Actual: 0; Below',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- lineNumber: 20,
- },
- lineNumber: 19,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: a',
+ errorRange: [
+ 6,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 90,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: '# Test {MD022} {MD023} Also valid heading for CommonMark',
- errorDetail: 'Expected: 1; Actual: 0; Above',
- errorRange: null,
- fixInfo: {
- insertText: `␊
- `,
- },
- lineNumber: 20,
- ruleDescription: 'Headings should be surrounded by blank lines',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md022.md',
+ errorContext: null,
+ errorDetail: 'Element: img',
+ errorRange: [
+ 6,
+ 39,
+ ],
+ fixInfo: null,
+ lineNumber: 91,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD022',
- 'blanks-around-headings',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: ' # Heading 1 {MD023}',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: foo-bar-baz',
errorRange: [
1,
- 1,
+ 13,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- },
- lineNumber: 3,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ fixInfo: null,
+ lineNumber: 101,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: ' Setext style fully indented {...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: details',
errorRange: [
1,
- 1,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- },
- lineNumber: 5,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ fixInfo: null,
+ lineNumber: 109,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: ' Setext style title only inden...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: details',
errorRange: [
- 1,
- 1,
+ 2,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- },
- lineNumber: 8,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ fixInfo: null,
+ lineNumber: 116,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: ' # Test {MD022} {MD023} Als...',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: custom-element',
errorRange: [
- 3,
- 2,
+ 1,
+ 35,
],
- fixInfo: {
- deleteCount: 2,
- editColumn: 3,
- },
- lineNumber: 20,
- ruleDescription: 'Headings must start at the beginning of the line',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md023.md',
+ fixInfo: null,
+ lineNumber: 120,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD023',
- 'heading-start-left',
+ 'MD033',
+ 'no-inline-html',
],
},
],
- fixed: `Some text␊
+ fixed: `# Detailed HTML Results␊
␊
- # Heading 1 {MD023}␊
+ Text␊
␊
- Setext style fully indented {MD023}␊
- ===================================␊
+ Block block {MD033}␊
␊
- Setext style title only indented {MD023}␊
- =========================================␊
+ Text inline inline {MD033} text␊
␊
- * Test situations in which MD023 shouldn't be triggered.␊
+ Text␊
␊
- \`\`\`rb␊
- # This shouldn't trigger MD023 as it is a code comment.␊
- foo = "And here is some code"␊
- \`\`\`␊
+ Block block␊
␊
- * This is another case where MD023 shouldn't be triggered␊
+ Text inline inline text␊
␊
- # Test {MD022} Valid heading for CommonMark (see section 5.2)␊
+ Text␊
␊
- # Test {MD022} {MD023} Also valid heading for CommonMark␊
+ ␊
+ Block {MD033:17}␊
+ block block {MD033} block␊
+ block␊
+ block block block␊
+ block␊
+ block block block block block {MD033}␊
+ block block block block block {MD033}␊
+
␊
+ ␊
+ Text␊
+ ␊
+ Block block {MD033}␊
+ ␊
+ Text inline inline {MD033} text␊
+ ␊
+ Text␊
+ ␊
+ Block block {MD033}␊
+ ␊
+ Text inline inline {MD033} text␊
+ ␊
+ Text␊
+ ␊
+ Text inline text inline text inline text {MD033}␊
+ ␊
+ Text inline text inline text inline {MD033}␊
+ ␊
+ Text␊
+ ␊
+ \\Block block\\␊
+ ␊
+ \\\\Block block {MD033}\\\\␊
+ ␊
+ Block block␊
+ ␊
+ Text \\inline inline\\ text␊
+ ␊
+ Text \\\\inline inline {MD033}\\\\ text␊
+ ␊
+ Text inline inline text␊
+ ␊
+ Text␊
+ ␊
+ > Text inline inline {MD033} text␊
+ > text inline inline text␊
+ ␊
+ Text␊
+ ␊
+ Text inline inline text␊
+ text inline inline text␊
+ ␊
+ Text␊
+ ␊
+ \`\`\`html␊
+ Text inline inline text␊
+ text inline inline text␊
+ \`\`\`␊
+ ␊
+ Text␊
+ ␊
+ \`\`␊
+ ␊
+ Text \`\`\`\` text␊
+ ␊
+ Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊
+ ␊
+ Text \`\` text inline {MD033} text␊
+ ␊
+ Text \`\`text text\`\` text␊
+ ␊
+ Text␊
+ ␊
+ Text inline {MD033} text␊
+ text text {MD033}␊
+ ␊
+ Text␊
+ ␊
+ is an email autolink.␊
+ ␊
+ Another email autolink: .␊
+ ␊
+ Text␊
+ ␊
+ is an HTML element. {MD033}␊
+ ␊
+ But is not an autolink or HTML element.␊
+ And neither is .␊
+ Nor <123abc>.␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ {MD033:109}␊
+ ␊
+ ␊
+ ␊
+ - Item␊
+ ␊
+ ␊
+ {MD033:116}␊
+ ␊
+ ␊
+ ␊
+ {MD033:120}␊
+ ␊
+ Text text.␊
␊
␊
`,
}
-## hr-in-blockquote-dash.md
+## hugo-quickstart-example-blank.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++␊
+ date = "2016-02-14T16:11:58+05:30"␊
+ draft = true␊
+ title = "Good to Great Book Review"␊
+ ␊
+ +++␊
+ ␊
+ # Heading 1␊
+ ␊
+ ␊
+ `,
+ }
+
+## hugo-quickstart-example-clean.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `+++␊
+ date = "2016-02-14T16:11:58+05:30"␊
+ draft = true␊
+ title = "Good to Great Book Review"␊
+ ␊
+ +++␊
+ # Heading 1␊
+ ␊
+ ␊
+ `,
+ }
+
+## hugo-quickstart-example-json.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
+ errorContext: 'Heading {MD025}',
+ errorDetail: null,
errorRange: null,
fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 13,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
+ ],
+ fixed: `{␊
+ "title": "Another Hugo Post",␊
+ "description": "Nothing special, but one post is boring.",␊
+ "date": "2014-09-02",␊
+ "categories": [ "example", "configuration" ],␊
+ "tags": [␊
+ "example",␊
+ "hugo",␊
+ "toml"␊
+ ],␊
+ }␊
+ ␊
+ # Heading {MD025}␊
+ `,
+ }
+
+## ignore-comments.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorRange: [
+ 30,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 30,
+ },
+ lineNumber: 29,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ ruleNames: [
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorRange: [
+ 14,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 14,
+ },
+ lineNumber: 39,
+ ruleDescription: 'Trailing spaces',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD009',
+ 'no-trailing-spaces',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: - - -',
- errorRange: null,
- fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 31,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 10',
+ errorRange: [
+ 10,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 10,
+ insertText: ' ',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 33,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 16',
+ errorRange: [
+ 16,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 16,
+ insertText: ' ',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 22,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ ruleNames: [
+ 'MD010',
+ 'no-hard-tabs',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 24,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ ruleNames: [
+ 'MD010',
+ 'no-hard-tabs',
],
},
],
- fixed: `# HR in Blockquote, Dash␊
+ fixed: `# ignore-comments.md␊
␊
- ---␊
+ Hard tab {MD010}␊
␊
- ***␊
+ Hard tabs hard tabs {MD010}␊
␊
- ___␊
+ ␊
␊
- {MD035:5} {MD035:7}␊
+ ␊
␊
- > Text␊
- >␊
- > ---␊
- >␊
- > ***␊
- >␊
- > ___␊
- >␊
- > Text␊
+ ␊
␊
- {MD035:15} {MD035:17}␊
+ ␊
␊
- > Text␊
- >␊
- > > Text␊
- > >␊
- > > ---␊
- > >␊
- > > ***␊
- > >␊
- > > ___␊
- > >␊
- > > Text␊
- >␊
- > Text␊
+ Text comment␊
+ Hard tab {MD010}␊
+ --> text␊
␊
- {MD035:23} {MD035:31} {MD035:33}␊
+ Text␊
+ ␊
+ Text {MD009}␊
+ ␊
+ Text␊
+ ␊
+ Text␊
+ ␊
+ Text {MD009}␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ Hard tab␊
`,
}
-## hr-in-blockquote-star.md
+## ignore-html-block.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
+ errorContext: '##Title2 {MD018}',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 3,
+ ],
+ fixInfo: {
+ editColumn: 3,
+ insertText: ' ',
+ },
lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleDescription: 'No space after hash on atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD018',
+ 'no-missing-space-atx',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: '##Title3 {MD020}##',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 18,
+ editColumn: 1,
+ insertText: '## Title3 {MD020} ##',
+ },
+ lineNumber: 11,
+ ruleDescription: 'No space inside hashes on closed atx style heading',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md020.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD020',
+ 'no-missing-space-closed-atx',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Element: div',
+ errorRange: [
+ 1,
+ 5,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: * * *',
- errorRange: null,
fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 7,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 29,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Element: div',
+ errorRange: [
+ 1,
+ 5,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
fixInfo: null,
- lineNumber: 33,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 13,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD033',
+ 'no-inline-html',
],
},
],
- fixed: `# HR in Blockquote, Star␊
- ␊
- ***␊
- ␊
- ___␊
- ␊
- ---␊
- ␊
- {MD035:5} {MD035:7}␊
+ fixed: `# ignore-html-block.md␊
␊
- > Text␊
- >␊
- > ---␊
- >␊
- > ***␊
- >␊
- > ___␊
- >␊
- > Text␊
+ ## Title␊
␊
- {MD035:13} {MD035:17}␊
+ ## Title2 {MD018}␊
␊
- * * *␊
+ {MD033}␊
+ #foo␊
+
␊
␊
- > Text␊
- >␊
- > > Text␊
- > >␊
- > > ---␊
- > >␊
- > > ***␊
- > >␊
- > > ___␊
- > >␊
- > > Text␊
- >␊
- > Text␊
+ ## Title3 {MD020} ##␊
␊
- {MD035:23} {MD035:29} {MD035:33}␊
+ {MD033}␊
+ #foo#␊
+
␊
`,
}
-## hr-in-blockquote-under.md
+## inconsistent_bullet_indent_same_level.md
> Snapshot 1
@@ -17199,139 +17317,152 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ---',
- errorRange: null,
+ errorDetail: 'Expected: 4; Actual: 2',
+ errorRange: [
+ 1,
+ 4,
+ ],
fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleDescription: 'Inconsistent indentation for list items at the same level',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD005',
+ 'list-indent',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: 2; Actual: 4',
+ errorRange: [
+ 1,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 2,
+ editColumn: 1,
+ insertText: '',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list indentation',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD007',
+ 'ul-indent',
],
},
+ ],
+ fixed: `# Inconsistent Bullet Indent Same Level␊
+ ␊
+ * Item␊
+ * Item {MD007}␊
+ * Item {MD005}␊
+ * Item␊
+ `,
+ }
+
+## inconsistent_bullet_styles_asterisk.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: asterisk; Actual: plus',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '*',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: asterisk; Actual: dash',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '*',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: _ _ _',
- errorRange: null,
- fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: asterisk; Actual: plus',
+ errorRange: [
+ 1,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '*',
+ },
+ lineNumber: 9,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 29,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: asterisk; Actual: dash',
+ errorRange: [
+ 1,
+ 6,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ___; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 31,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '*',
+ },
+ lineNumber: 10,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
],
- fixed: `# HR in Blockquote, Under␊
- ␊
- ___␊
- ␊
- ---␊
- ␊
- ***␊
- ␊
- {MD035:5} {MD035:7}␊
- ␊
- > Text␊
- >␊
- > ---␊
- >␊
- > ***␊
- >␊
- > ___␊
- >␊
- > Text␊
- ␊
- {MD035:13} {MD035:15}␊
- ␊
- _ _ _␊
+ fixed: `# inconsistent_bullet_styles_asterisk␊
␊
- > Text␊
- >␊
- > > Text␊
- > >␊
- > > ---␊
- > >␊
- > > ***␊
- > >␊
- > > ___␊
- > >␊
- > > Text␊
- >␊
- > Text␊
+ * Item␊
+ * Item {MD004}␊
+ * Item {MD004}␊
+ * Item␊
␊
- {MD035:23} {MD035:29} {MD035:31}␊
+ > * Item␊
+ > * Item {MD004}␊
+ > * Item {MD004}␊
+ > * Item␊
`,
}
-## hr-in-list-dash.md
+## inconsistent_bullet_styles_dash.md
> Snapshot 1
@@ -17339,131 +17470,100 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: dash; Actual: asterisk',
+ errorRange: [
+ 1,
+ 4,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '-',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: - ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 14,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: dash; Actual: plus',
+ errorRange: [
+ 1,
+ 4,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 16,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '-',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 18,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: dash; Actual: asterisk',
+ errorRange: [
+ 1,
+ 6,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: * ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 26,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '-',
+ },
+ lineNumber: 9,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 28,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: dash; Actual: plus',
+ errorRange: [
+ 1,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '-',
+ },
+ lineNumber: 10,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
],
- fixed: `# HR in List, Dash␊
- ␊
- ---␊
- ␊
- ***␊
- ␊
- ___␊
- ␊
- {MD035:5} {MD035:7}␊
- ␊
- ␊
- ␊
- - list␊
- - ---␊
- - list␊
- - ***␊
- - list␊
- - ___␊
- - list␊
- ␊
- {MD035:14} {MD035:16} {MD035:18}␊
+ fixed: `# inconsistent_bullet_styles_dash␊
␊
- * list␊
- * ---␊
- * list␊
- * ***␊
- * list␊
- * ___␊
- * list␊
+ - Item␊
+ - Item {MD004}␊
+ - Item {MD004}␊
+ - Item␊
␊
- {MD035:26} {MD035:28}␊
+ > - Item␊
+ > - Item {MD004}␊
+ > - Item {MD004}␊
+ > - Item␊
`,
}
-## hr-in-list-star.md
+## inconsistent_bullet_styles_plus.md
> Snapshot 1
@@ -17471,131 +17571,161 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: plus; Actual: asterisk',
+ errorRange: [
+ 1,
+ 4,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '+',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: - ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 14,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: plus; Actual: dash',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '+',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 18,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: plus; Actual: asterisk',
+ errorRange: [
+ 1,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '+',
+ },
+ lineNumber: 9,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 24,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: plus; Actual: dash',
+ errorRange: [
+ 1,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: '+',
+ },
+ lineNumber: 10,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
+ ],
+ fixed: `# inconsistent_bullet_styles_plus␊
+ ␊
+ + Item␊
+ + Item {MD004}␊
+ + Item {MD004}␊
+ + Item␊
+ ␊
+ > + Item␊
+ > + Item {MD004}␊
+ > + Item {MD004}␊
+ > + Item␊
+ `,
+ }
+
+## incorrect_bullet_style_asterisk.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: * ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 26,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: asterisk; Actual: dash',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '*',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 28,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: asterisk; Actual: plus',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '*',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
],
- fixed: `# HR in List, Star␊
- ␊
- ***␊
- ␊
- ___␊
- ␊
- ---␊
- ␊
- {MD035:5} {MD035:7}␊
- ␊
- ␊
- ␊
- - list␊
- - ---␊
- - list␊
- - ***␊
- - list␊
- - ___␊
- - list␊
- ␊
- {MD035:14} {MD035:18}␊
+ fixed: `# incorrect_bullet_style_asterisk␊
␊
- * list␊
- * ---␊
- * list␊
- * ***␊
- * list␊
- * ___␊
- * list␊
+ * Item␊
+ * Item {MD004}␊
+ * Item {MD004}␊
␊
- {MD035:24} {MD035:26} {MD035:28}␊
+ ␊
`,
}
-## hr-in-list-under.md
+## incorrect_bullet_style_dash.md
> Snapshot 1
@@ -17603,118 +17733,121 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Expected: dash; Actual: asterisk',
+ errorRange: [
+ 1,
+ 2,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ___; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: '-',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: - ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 14,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: dash; Actual: plus',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '-',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ___; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 16,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
+ ],
+ fixed: `# incorrect_bullet_style_dash␊
+ ␊
+ - Item {MD004}␊
+ - Item␊
+ - Item {MD004}␊
+ ␊
+ ␊
+ `,
+ }
+
+## incorrect_bullet_style_plus.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 24,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: plus; Actual: asterisk',
+ errorRange: [
+ 1,
+ 2,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 1,
+ insertText: '+',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ___; Actual: * ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 26,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Expected: plus; Actual: dash',
+ errorRange: [
+ 1,
+ 4,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 3,
+ insertText: '+',
+ },
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD004',
+ 'ul-style',
],
},
],
- fixed: `# HR in List, Under␊
- ␊
- ___␊
- ␊
- ---␊
- ␊
- ***␊
- ␊
- {MD035:5} {MD035:7}␊
- ␊
- ␊
- ␊
- - list␊
- - ---␊
- - list␊
- - ***␊
- - list␊
- - ___␊
- - list␊
- ␊
- {MD035:14} {MD035:16}␊
+ fixed: `# incorrect_bullet_style_plus␊
␊
- * list␊
- * ---␊
- * list␊
- * ***␊
- * list␊
- * ___␊
- * list␊
+ + Item {MD004}␊
+ + Item {MD004}␊
+ + Item␊
␊
- {MD035:24} {MD035:26}␊
+ ␊
`,
}
-## hr-style-custom.md
+## incorrect_heading_atx.md
> Snapshot 1
@@ -17722,76 +17855,47 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: - - -; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: - - -; Actual: - - -',
+ errorDetail: 'Expected: atx; Actual: atx_closed',
errorRange: null,
fixInfo: null,
- lineNumber: 10,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 1,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: - - -; Actual: ***',
+ errorDetail: 'Expected: atx; Actual: setext',
errorRange: null,
fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 5,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
],
- fixed: `# HR Style Custom␊
- ␊
- Text␊
- ␊
- ---␊
- {MD035:5}␊
- ␊
- Text␊
- ␊
- - - -␊
- {MD035:10}␊
- ␊
- Text␊
- ␊
- - - -␊
- ␊
- Text␊
+ fixed: `# Heading 1 {MD003} #␊
␊
- ***␊
- {MD035:19}␊
+ ## Heading 2␊
␊
- Text␊
+ Heading 3 {MD003}␊
+ -----------------␊
␊
␊
`,
}
-## hr_style_dashes.md
+## incorrect_heading_atx_closed.md
> Snapshot 1
@@ -17799,156 +17903,95 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
+ errorDetail: 'Expected: atx_closed; Actual: atx',
errorRange: null,
fixInfo: null,
lineNumber: 3,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: * * *',
+ errorDetail: 'Expected: atx_closed; Actual: setext',
errorRange: null,
fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: *****',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: - - -',
- errorRange: null,
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: -----',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: _ _ _',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
+ ],
+ fixed: `# Heading 1 #␊
+ ␊
+ ## Heading 2 {MD003}␊
+ ␊
+ Heading 3 {MD003}␊
+ -----------------␊
+ ␊
+ ␊
+ `,
+ }
+
+## incorrect_heading_setext.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: _____',
+ errorDetail: 'Expected: setext; Actual: atx_closed',
errorRange: null,
fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 1,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
+ errorDetail: 'Expected: setext; Actual: atx',
errorRange: null,
fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ lineNumber: 3,
+ ruleDescription: 'Heading style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD003',
+ 'heading-style',
],
},
],
- fixed: `# hr_style_dashes␊
- ␊
- ***␊
- ␊
- * * *␊
- ␊
- *****␊
- ␊
- ---␊
- ␊
- - - -␊
- ␊
- -----␊
- ␊
- ___␊
- ␊
- _ _ _␊
- ␊
- _____␊
+ fixed: `# Heading 1 {MD003} #␊
␊
- ***␊
+ ## Heading 2 {MD003}␊
␊
- {MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13}␊
- {MD035:15} {MD035:17} {MD035:19} {MD035:21}␊
+ Heading 3␊
+ ---------␊
␊
␊
`,
}
-## hr_style_inconsistent.md
+## inline-capture-restore.md
> Snapshot 1
@@ -17956,454 +17999,372 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: * * *',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 52,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: *****',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 64,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 70,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: - - -',
- errorRange: null,
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 76,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: -----',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 82,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 88,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: _ _ _',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 94,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: ***; Actual: _____',
- errorRange: null,
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
],
- },
- ],
- fixed: `# hr_style_inconsistent␊
- ␊
- ***␊
- ␊
- * * *␊
- ␊
- *****␊
- ␊
- ---␊
- ␊
- - - -␊
- ␊
- -----␊
- ␊
- ___␊
- ␊
- _ _ _␊
- ␊
- _____␊
- ␊
- ***␊
- ␊
- {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊
- `,
- }
-
-## hr_style_long.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 104,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: _____; Actual: * * *',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: *****',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 116,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 9,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: - - -',
- errorRange: null,
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 4,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: -----',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 9,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: ___',
- errorRange: null,
- fixInfo: null,
- lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 14,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: _ _ _',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 9,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: _____; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 21,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 30,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# hr_style_long␊
- ␊
- ***␊
- ␊
- * * *␊
- ␊
- *****␊
- ␊
- ---␊
- ␊
- - - -␊
- ␊
- -----␊
- ␊
- ___␊
- ␊
- _ _ _␊
- ␊
- _____␊
- ␊
- ***␊
- ␊
- {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15}␊
- {MD035:17} {MD035:21}␊
- ␊
- ␊
- `,
- }
-
-## hr_style_stars.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: * * *',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 9,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: *****',
- errorRange: null,
- fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 83,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ---',
- errorRange: null,
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 9,
+ 3,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: - - -',
- errorRange: null,
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 117,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: -----',
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorContext: '`in `',
+ errorDetail: null,
+ errorRange: [
+ 7,
+ 5,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
+ lineNumber: 5,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: ___',
- errorRange: null,
- fixInfo: null,
+ errorContext: '`in `',
+ errorDetail: null,
+ errorRange: [
+ 7,
+ 5,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
lineNumber: 15,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: _ _ _',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorContext: '`in `',
+ errorDetail: null,
+ errorRange: [
+ 7,
+ 5,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
+ lineNumber: 21,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: ***; Actual: _____',
- errorRange: null,
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
+ errorContext: '`in `',
+ errorDetail: null,
+ errorRange: [
+ 7,
+ 5,
+ ],
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
+ lineNumber: 31,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD035',
- 'hr-style',
+ 'MD038',
+ 'no-space-in-code',
],
},
- ],
- fixed: `# hr_style_stars␊
- ␊
- ***␊
- ␊
- * * *␊
- ␊
- *****␊
- ␊
- ---␊
- ␊
- - - -␊
- ␊
- -----␊
- ␊
- ___␊
- ␊
- _ _ _␊
- ␊
- _____␊
- ␊
- ***␊
- ␊
- {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊
- ␊
- ␊
- `,
- }
-
-## html-comment-in-code-and-table.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 1,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 2,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 3,
+ lineNumber: 37,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18412,18 +18373,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 3,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 4,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 15,
+ lineNumber: 48,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18432,18 +18393,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 3,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 4,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 19,
+ lineNumber: 54,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18452,153 +18413,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
+ 7,
5,
- 10,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 6,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 39,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
- ruleNames: [
- 'MD038',
- 'no-space-in-code',
- ],
- },
- ],
- fixed: `# HTML Comment in Code and Table␊
- ␊
- \`{MD038}\`␊
- ␊
- ␊
- ␊
- \`\`\`text␊
- ␊
- \`\`\`␊
- ␊
- ␊
- ␊
- | Table |␊
- |------------|␊
- | \`{MD038}\` |␊
- ␊
- * item␊
- ␊
- \`{MD038}\`␊
- ␊
- * item␊
- ␊
- ␊
- ␊
- * item␊
- ␊
- \`\`\`text␊
- ␊
- \`\`\`␊
- ␊
- * item␊
- ␊
- ␊
- ␊
- * item␊
- ␊
- | Table |␊
- |------------|␊
- | \`{MD038}\` |␊
- ␊
- ␊
- `,
- }
-
-## html-comment-in-list-item.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# HTML Comment in List Item␊
- ␊
- - item␊
- ␊
- ␊
- ␊
- - item␊
- ␊
- x␊
- ␊
- - item␊
- ␊
- x␊
- ␊
- - item␊
- ␊
- xx␊
- ␊
- - item␊
- ␊
- \`\`\`html␊
- ␊
- \`\`\`␊
- ␊
- - item␊
- ␊
- \`\`\`html␊
- x␊
- \`\`\`␊
- ␊
- - item␊
- ␊
- \`\`\`html␊
- x␊
- \`\`\`␊
- ␊
- - item␊
- ␊
- \`\`\`html␊
- xx␊
- \`\`\`␊
- ␊
- - item␊
- `,
- }
-
-## html-comment-in-markdown-table.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: '`{MD038} `',
- errorDetail: null,
- errorRange: [
- 3,
- 10,
- ],
- fixInfo: {
- deleteCount: 8,
- editColumn: 4,
- insertText: '{MD038}',
- },
- lineNumber: 16,
+ lineNumber: 60,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18607,18 +18433,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 3,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 4,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 22,
+ lineNumber: 66,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18627,18 +18453,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 3,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 4,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 28,
+ lineNumber: 72,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18647,18 +18473,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 11,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 12,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 40,
+ lineNumber: 78,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18667,18 +18493,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 11,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 12,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 46,
+ lineNumber: 84,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18687,18 +18513,18 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`{MD038} `',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 11,
- 10,
+ 7,
+ 5,
],
fixInfo: {
- deleteCount: 8,
- editColumn: 12,
- insertText: '{MD038}',
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
},
- lineNumber: 52,
+ lineNumber: 90,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -18707,174 +18533,146 @@ Generated by [AVA](https://avajs.dev).
],
},
],
- fixed: `# HTML Comment in Markdown Table␊
+ fixed: `# Inline Capture/Restore␊
␊
- \`\`\`xml␊
- ␊
- \`\`\`␊
+ hard tab␊
+ space *in* emphasis {MD037}␊
+ space \`in\` code {MD038}␊
␊
- | Table |␊
- |-------|␊
- | |␊
+ ␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in \` code␊
+ ␊
␊
- | Table |␊
- |------------|␊
- | |␊
+ hard tab␊
+ space *in* emphasis {MD037}␊
+ space \`in\` code {MD038}␊
␊
- | Table |␊
- |----------------|␊
- | |␊
- | cell |␊
+ ␊
␊
- | Table |␊
- |----------------|␊
- | |␊
- | cell |␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- | Table | Table |␊
- |-------|-------|␊
- | cell | |␊
+ ␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in \` code␊
+ ␊
␊
- | Table | Table |␊
- |-------|------------|␊
- | cell | |␊
+ hard tab␊
+ space *in* emphasis {MD037}␊
+ space \`in\` code {MD038}␊
␊
- | Table | Table |␊
- |-------|----------------|␊
- | cell | |␊
- | cell | cell |␊
+ ␊
␊
- | Table | Table |␊
- |-------|----------------|␊
- | cell | |␊
- | cell | cell |␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- ␊
- `,
- }
-
-## html-comments.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: '} *',
- errorDetail: null,
- errorRange: [
- 15,
- 3,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 16,
- },
- lineNumber: 51,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
- ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
- ],
- },
- {
- errorContext: '} *',
- errorDetail: null,
- errorRange: [
- 16,
- 3,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 17,
- },
- lineNumber: 53,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
- ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
- ],
- },
- ],
- fixed: `# HTML Comments␊
+ ␊
+ ␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in \` code␊
+ ␊
␊
- ## Block Comments␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- ␊
+ ␊
␊
- ␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- text␊
+ ␊
␊
- ␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- ␊
+ ␊
␊
- ␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- ␊
+ ␊
␊
- *text * -->␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- *text * -->␊
+ ␊
␊
- ␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- ␊
+ ␊
␊
- ␊
+ hard tab {MD010}␊
+ space *in* emphasis {MD037}␊
+ space \`in\` code {MD038}␊
␊
- ## Inline Comments␊
+ ␊
␊
- ␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in\` code {MD038}␊
␊
- t␊
+ ␊
␊
- ttext␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in \` code␊
␊
- t␊
+ ␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in \` code␊
+ ␊
␊
- t␊
+ hard tab {MD010}␊
+ space *in * emphasis␊
+ space \`in \` code␊
␊
- t␊
+ ␊
␊
- t␊
+ hard tab␊
+ space *in * emphasis␊
+ space \`in \` code␊
␊
- t *{MD037}* -->␊
+ ␊
␊
- t *{MD037}* -->␊
+ hard tab {MD010}␊
+ space *in* emphasis {MD037}␊
+ space \`in \` code␊
␊
- t␊
+ ␊
+ `,
+ }
+
+## inline-configure-file-invalid.md
+
+> Snapshot 1
+
+ {
+ errors: [],
+ fixed: `# Inline Configure File Invalid␊
␊
- t␊
+ Not normally too long of a line, but it would have been from an inline config.␊
␊
- t␊
+ ␊
`,
}
-## html-tags.md
+## inline-configure-file-multiple-instances.md
> Snapshot 1
@@ -18882,635 +18680,587 @@ Generated by [AVA](https://avajs.dev).
errors: [
{
errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 6,
- 4,
- ],
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 7,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 3,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: p',
- errorRange: [
- 1,
- 3,
- ],
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
fixInfo: null,
lineNumber: 17,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 7,
- 4,
- ],
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 7,
- 4,
- ],
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 23,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 30,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
- {
- errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 36,
- 4,
- ],
+ ],
+ fixed: `# Inline Configure File Multiple Instances␊
+ ␊
+ ***␊
+ {MD035:3}␊
+ ␊
+ Trailing spaces: ␊
+ ␊
+ ␊
+ ␊
+ ***␊
+ {MD035:17}␊
+ ␊
+ Trailing spaces: ␊
+ ␊
+ ␊
+ ␊
+ ***␊
+ {MD035:30}␊
+ ␊
+ Trailing spaces: ␊
+ `,
+ }
+
+## inline-configure-file-multiple-lines.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 24,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 3,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
{
errorContext: null,
- errorDetail: 'Element: em',
- errorRange: [
- 9,
- 4,
- ],
+ errorDetail: 'Expected: ---; Actual: ***',
+ errorRange: null,
fixInfo: null,
- lineNumber: 29,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 17,
+ ruleDescription: 'Horizontal rule style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD035',
+ 'hr-style',
],
},
+ ],
+ fixed: `# Inline Configure File Multiple Lines␊
+ ␊
+ ***␊
+ {MD035:3}␊
+ ␊
+ Trailing spaces: ␊
+ ␊
+ ␊
+ ␊
+ ***␊
+ {MD035:17}␊
+ ␊
+ Trailing spaces: ␊
+ `,
+ }
+
+## inline-configure-file-single-line.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Element: em',
+ errorDetail: 'Expected: 70; Actual: 78',
errorRange: [
- 14,
- 4,
+ 71,
+ 8,
],
fixInfo: null,
- lineNumber: 31,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 3,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD013',
+ 'line-length',
],
},
{
errorContext: null,
- errorDetail: 'Element: em',
+ errorDetail: 'Expected: 70; Actual: 85',
errorRange: [
- 1,
- 4,
+ 71,
+ 15,
],
fixInfo: null,
- lineNumber: 35,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 5,
+ ruleDescription: 'Line length',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD013',
+ 'line-length',
],
},
+ ],
+ fixed: `# Inline Configure File Single Line␊
+ ␊
+ Not normally too long of a line, but it is here from an inline config. {MD013}␊
+ ␊
+ {MD013}␊
+ `,
+ }
+
+## inline-configure-file-violations.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: null,
- errorDetail: 'Element: em',
+ errorContext: '* w',
+ errorDetail: null,
errorRange: [
- 6,
- 4,
+ 10,
+ 3,
],
- fixInfo: null,
- lineNumber: 37,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 11,
+ },
+ lineNumber: 3,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Element: em',
+ errorContext: 'h *',
+ errorDetail: null,
errorRange: [
- 6,
- 4,
+ 15,
+ 3,
],
- fixInfo: null,
- lineNumber: 41,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 16,
+ },
+ lineNumber: 3,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
+ ],
+ fixed: `# Inline Configure File Violations␊
+ ␊
+ Emphasis *with* spaces {MD037}␊
+ ␊
+ Trailing spaces: ␊
+ ␊
+ ␊
+ `,
+ }
+
+## inline-disable-enable-file.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Element: em',
+ errorDetail: 'Column: 5',
errorRange: [
- 56,
- 4,
+ 5,
+ 1,
],
- fixInfo: null,
- lineNumber: 41,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
- errorContext: null,
- errorDetail: 'Element: em',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 35,
- 4,
+ 9,
+ 3,
],
- fixInfo: null,
- lineNumber: 43,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 5,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Element: problem',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 3,
9,
+ 3,
],
- fixInfo: null,
- lineNumber: 49,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 13,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Element: problem',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 8,
9,
+ 3,
],
- fixInfo: null,
- lineNumber: 55,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 21,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Element: em',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 8,
- 4,
+ 9,
+ 3,
],
- fixInfo: null,
- lineNumber: 61,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 10,
+ },
+ lineNumber: 30,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Element: em',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
- 18,
- 4,
+ 7,
+ 5,
],
- fixInfo: null,
- lineNumber: 84,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
+ lineNumber: 23,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Element: a',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
- 6,
- 18,
+ 7,
+ 5,
],
- fixInfo: null,
- lineNumber: 90,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 3,
+ editColumn: 8,
+ insertText: 'in',
+ },
+ lineNumber: 32,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD038',
+ 'no-space-in-code',
],
},
+ ],
+ fixed: `# Heading␊
+ ␊
+ hard tab {MD010}␊
+ ␊
+ space *in* emphasis {MD037}␊
+ ␊
+ space \`in \` code␊
+ ␊
+ ␊
+ ␊
+ hard tab␊
+ ␊
+ space *in* emphasis {MD037}␊
+ ␊
+ space \`in \` code␊
+ ␊
+ ␊
+ ␊
+ hard tab␊
+ ␊
+ space *in* emphasis {MD037}␊
+ ␊
+ space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ ␊
+ hard tab␊
+ ␊
+ space *in* emphasis {MD037}␊
+ ␊
+ space \`in\` code {MD038}␊
+ ␊
+ ␊
+ `,
+ }
+
+## inline-disable-enable.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Element: img',
+ errorDetail: 'Column: 5',
errorRange: [
- 6,
- 39,
+ 5,
+ 1,
],
- fixInfo: null,
- lineNumber: 91,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Element: foo-bar-baz',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 13,
],
- fixInfo: null,
- lineNumber: 101,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 11,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Element: details',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 9,
],
- fixInfo: null,
- lineNumber: 109,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 19,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Element: details',
+ errorDetail: 'Column: 5',
errorRange: [
- 2,
- 9,
+ 5,
+ 1,
],
- fixInfo: null,
- lineNumber: 116,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 27,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Element: custom-element',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 35,
],
- fixInfo: null,
- lineNumber: 120,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 35,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD010',
+ 'no-hard-tabs',
],
},
- ],
- fixed: `# Detailed HTML Results␊
- ␊
- Text␊
- ␊
- Block block {MD033}␊
- ␊
- Text inline inline {MD033} text␊
- ␊
- Text␊
- ␊
- Block block␊
- ␊
- Text inline inline text␊
- ␊
- Text␊
- ␊
- ␊
- Block {MD033:17}␊
- block block {MD033} block␊
- block␊
- block block block␊
- block␊
- block block block block block {MD033}␊
- block block block block block {MD033}␊
-
␊
- ␊
- Text␊
- ␊
- Block block {MD033}␊
- ␊
- Text inline inline {MD033} text␊
- ␊
- Text␊
- ␊
- Block block {MD033}␊
- ␊
- Text inline inline {MD033} text␊
- ␊
- Text␊
- ␊
- Text inline text inline text inline text {MD033}␊
- ␊
- Text inline text inline text inline {MD033}␊
- ␊
- Text␊
- ␊
- \\Block block\\␊
- ␊
- \\\\Block block {MD033}\\\\␊
- ␊
- Block block␊
- ␊
- Text \\inline inline\\ text␊
- ␊
- Text \\\\inline inline {MD033}\\\\ text␊
- ␊
- Text inline inline text␊
- ␊
- Text␊
- ␊
- > Text inline inline {MD033} text␊
- > text inline inline text␊
- ␊
- Text␊
- ␊
- Text inline inline text␊
- text inline inline text␊
- ␊
- Text␊
- ␊
- \`\`\`html␊
- Text inline inline text␊
- text inline inline text␊
- \`\`\`␊
- ␊
- Text␊
- ␊
- \`\`␊
- ␊
- Text \`\`\`\` text␊
- ␊
- Text \`\` text \`\`\`\` text \`\`\`\`\`\` text␊
- ␊
- Text \`\` text inline {MD033} text␊
- ␊
- Text \`\`text text\`\` text␊
- ␊
- Text␊
- ␊
- Text inline {MD033} text␊
- text text {MD033}␊
- ␊
- Text␊
- ␊
- is an email autolink.␊
- ␊
- Another email autolink: .␊
- ␊
- Text␊
- ␊
- is an HTML element. {MD033}␊
- ␊
- But is not an autolink or HTML element.␊
- And neither is .␊
- Nor <123abc>.␊
- ␊
- Text␊
- ␊
- ␊
- ␊
- {MD033:109}␊
- ␊
- ␊
- ␊
- - Item␊
- ␊
- ␊
- {MD033:116}␊
- ␊
- ␊
- ␊
- {MD033:120}␊
- ␊
- Text text.␊
- ␊
- ␊
- `,
- }
-
-## hugo-quickstart-example-blank.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++␊
- date = "2016-02-14T16:11:58+05:30"␊
- draft = true␊
- title = "Good to Great Book Review"␊
- ␊
- +++␊
- ␊
- # Heading 1␊
- ␊
- ␊
- `,
- }
-
-## hugo-quickstart-example-clean.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `+++␊
- date = "2016-02-14T16:11:58+05:30"␊
- draft = true␊
- title = "Good to Great Book Review"␊
- ␊
- +++␊
- # Heading 1␊
- ␊
- ␊
- `,
- }
-
-## hugo-quickstart-example-json.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: 'Heading {MD025}',
- errorDetail: null,
- errorRange: null,
- fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ errorContext: null,
+ errorDetail: 'Column: 5',
+ errorRange: [
+ 5,
+ 1,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 43,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD010',
+ 'no-hard-tabs',
],
},
- ],
- fixed: `{␊
- "title": "Another Hugo Post",␊
- "description": "Nothing special, but one post is boring.",␊
- "date": "2014-09-02",␊
- "categories": [ "example", "configuration" ],␊
- "tags": [␊
- "example",␊
- "hugo",␊
- "toml"␊
- ],␊
- }␊
- ␊
- # Heading {MD025}␊
- `,
- }
-
-## ignore-comments.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorDetail: 'Column: 5',
errorRange: [
- 30,
+ 5,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 30,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 29,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 45,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 0 or 2; Actual: 1',
+ errorDetail: 'Column: 5',
errorRange: [
- 14,
+ 5,
1,
],
fixInfo: {
deleteCount: 1,
- editColumn: 14,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 39,
- ruleDescription: 'Trailing spaces',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
+ lineNumber: 47,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD009',
- 'no-trailing-spaces',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
@@ -19525,7 +19275,7 @@ Generated by [AVA](https://avajs.dev).
editColumn: 5,
insertText: ' ',
},
- lineNumber: 3,
+ lineNumber: 52,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19545,7 +19295,7 @@ Generated by [AVA](https://avajs.dev).
editColumn: 5,
insertText: ' ',
},
- lineNumber: 5,
+ lineNumber: 55,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19555,17 +19305,17 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Column: 10',
+ errorDetail: 'Column: 5',
errorRange: [
- 10,
- 2,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 10,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 5,
+ lineNumber: 61,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19575,17 +19325,17 @@ Generated by [AVA](https://avajs.dev).
},
{
errorContext: null,
- errorDetail: 'Column: 16',
+ errorDetail: 'Column: 5',
errorRange: [
- 16,
- 3,
+ 5,
+ 1,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 16,
- insertText: ' ',
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 5,
+ lineNumber: 64,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19605,7 +19355,7 @@ Generated by [AVA](https://avajs.dev).
editColumn: 5,
insertText: ' ',
},
- lineNumber: 22,
+ lineNumber: 67,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19625,7 +19375,7 @@ Generated by [AVA](https://avajs.dev).
editColumn: 5,
insertText: ' ',
},
- lineNumber: 24,
+ lineNumber: 73,
ruleDescription: 'Hard tabs',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
@@ -19633,936 +19383,728 @@ Generated by [AVA](https://avajs.dev).
'no-hard-tabs',
],
},
- ],
- fixed: `# ignore-comments.md␊
- ␊
- Hard tab {MD010}␊
- ␊
- Hard tabs hard tabs {MD010}␊
- ␊
- ␊
- ␊
- ␊
- ␊
- ␊
- ␊
- ␊
- ␊
- Text comment␊
- Hard tab {MD010}␊
- --> text␊
- ␊
- Text␊
- ␊
- Text {MD009}␊
- ␊
- Text␊
- ␊
- Text␊
- ␊
- Text {MD009}␊
- ␊
- Text␊
- ␊
- ␊
- ␊
- Hard tab␊
- `,
- }
-
-## inconsistent_bullet_indent_same_level.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: 4; Actual: 2',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 4,
],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Inconsistent indentation for list items at the same level',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md005.md',
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
+ },
+ lineNumber: 76,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD005',
- 'list-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: 2; Actual: 4',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 6,
],
fixInfo: {
- deleteCount: 2,
- editColumn: 1,
- insertText: '',
+ deleteCount: 1,
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 4,
- ruleDescription: 'Unordered list indentation',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md007.md',
+ lineNumber: 77,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD007',
- 'ul-indent',
+ 'MD010',
+ 'no-hard-tabs',
],
},
- ],
- fixed: `# Inconsistent Bullet Indent Same Level␊
- ␊
- * Item␊
- * Item {MD007}␊
- * Item {MD005}␊
- * Item␊
- `,
- }
-
-## inconsistent_bullet_styles_asterisk.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: plus',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '*',
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 79,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: dash',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '*',
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 5,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 82,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: plus',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 6,
],
fixInfo: {
deleteCount: 1,
editColumn: 5,
- insertText: '*',
+ insertText: ' ',
},
- lineNumber: 9,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 85,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: dash',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 6,
],
fixInfo: {
deleteCount: 1,
editColumn: 5,
- insertText: '*',
+ insertText: ' ',
},
- lineNumber: 10,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 93,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
- ],
- fixed: `# inconsistent_bullet_styles_asterisk␊
- ␊
- * Item␊
- * Item {MD004}␊
- * Item {MD004}␊
- * Item␊
- ␊
- > * Item␊
- > * Item {MD004}␊
- > * Item {MD004}␊
- > * Item␊
- `,
- }
-
-## inconsistent_bullet_styles_dash.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: dash; Actual: asterisk',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '-',
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 95,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: dash; Actual: plus',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '-',
+ editColumn: 5,
+ insertText: ' ',
},
- lineNumber: 5,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 97,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: dash; Actual: asterisk',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 6,
],
fixInfo: {
deleteCount: 1,
editColumn: 5,
- insertText: '-',
+ insertText: ' ',
},
- lineNumber: 9,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 99,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
{
errorContext: null,
- errorDetail: 'Expected: dash; Actual: plus',
+ errorDetail: 'Column: 5',
errorRange: [
+ 5,
1,
- 6,
],
fixInfo: {
deleteCount: 1,
editColumn: 5,
- insertText: '-',
+ insertText: ' ',
},
- lineNumber: 10,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 101,
+ ruleDescription: 'Hard tabs',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD010',
+ 'no-hard-tabs',
],
},
- ],
- fixed: `# inconsistent_bullet_styles_dash␊
- ␊
- - Item␊
- - Item {MD004}␊
- - Item {MD004}␊
- - Item␊
- ␊
- > - Item␊
- > - Item {MD004}␊
- > - Item {MD004}␊
- > - Item␊
- `,
- }
-
-## inconsistent_bullet_styles_plus.md
-
-> Snapshot 1
-
- {
- errors: [
{
errorContext: null,
- errorDetail: 'Expected: plus; Actual: asterisk',
+ errorDetail: 'Element: b',
errorRange: [
- 1,
- 4,
+ 10,
+ 3,
+ ],
+ fixInfo: null,
+ lineNumber: 69,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleNames: [
+ 'MD033',
+ 'no-inline-html',
+ ],
+ },
+ {
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '+',
+ editColumn: 29,
},
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 3,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: plus; Actual: dash',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '+',
+ editColumn: 29,
},
- lineNumber: 5,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 11,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: plus; Actual: asterisk',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 6,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: '+',
+ editColumn: 21,
},
- lineNumber: 9,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 15,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: plus; Actual: dash',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 6,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: '+',
+ editColumn: 29,
},
- lineNumber: 10,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 19,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# inconsistent_bullet_styles_plus␊
- ␊
- + Item␊
- + Item {MD004}␊
- + Item {MD004}␊
- + Item␊
- ␊
- > + Item␊
- > + Item {MD004}␊
- > + Item {MD004}␊
- > + Item␊
- `,
- }
-
-## incorrect_bullet_style_asterisk.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: dash',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '*',
+ editColumn: 21,
},
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 23,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: asterisk; Actual: plus',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '*',
+ editColumn: 29,
},
- lineNumber: 5,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 27,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# incorrect_bullet_style_asterisk␊
- ␊
- * Item␊
- * Item {MD004}␊
- * Item {MD004}␊
- ␊
- ␊
- `,
- }
-
-## incorrect_bullet_style_dash.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: asterisk',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 2,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: '-',
+ editColumn: 21,
},
- lineNumber: 3,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 31,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: plus',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '-',
+ editColumn: 29,
},
- lineNumber: 5,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 35,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# incorrect_bullet_style_dash␊
- ␊
- - Item {MD004}␊
- - Item␊
- - Item {MD004}␊
- ␊
- ␊
- `,
- }
-
-## incorrect_bullet_style_plus.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: plus; Actual: asterisk',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 2,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 1,
- insertText: '+',
+ editColumn: 21,
},
- lineNumber: 3,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 39,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: plus; Actual: dash',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 3,
- insertText: '+',
+ editColumn: 29,
},
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ lineNumber: 43,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# incorrect_bullet_style_plus␊
- ␊
- + Item {MD004}␊
- + Item {MD004}␊
- + Item␊
- ␊
- ␊
- `,
- }
-
-## incorrect_heading_atx.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: atx; Actual: atx_closed',
- errorRange: null,
- fixInfo: null,
- lineNumber: 1,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 47,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: atx; Actual: setext',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 52,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# Heading 1 {MD003} #␊
- ␊
- ## Heading 2␊
- ␊
- Heading 3 {MD003}␊
- -----------------␊
- ␊
- ␊
- `,
- }
-
-## incorrect_heading_atx_closed.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: atx_closed; Actual: atx',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 55,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: atx_closed; Actual: setext',
- errorRange: null,
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
- ruleNames: [
- 'MD003',
- 'heading-style',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 61,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ ruleNames: [
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# Heading 1 #␊
- ␊
- ## Heading 2 {MD003}␊
- ␊
- Heading 3 {MD003}␊
- -----------------␊
- ␊
- ␊
- `,
- }
-
-## incorrect_heading_setext.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: setext; Actual: atx_closed',
- errorRange: null,
- fixInfo: null,
- lineNumber: 1,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 64,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: setext; Actual: atx',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Heading style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md003.md',
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
+ },
+ lineNumber: 67,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD003',
- 'heading-style',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
- ],
- fixed: `# Heading 1 {MD003} #␊
- ␊
- ## Heading 2 {MD003}␊
- ␊
- Heading 3␊
- ---------␊
- ␊
- ␊
- `,
- }
-
-## inline-capture-restore.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 29,
},
- lineNumber: 52,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 73,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 29,
},
- lineNumber: 64,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 76,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 29,
},
- lineNumber: 70,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 77,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 29,
},
- lineNumber: 76,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 79,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 21,
+ },
+ lineNumber: 81,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ ruleNames: [
+ 'MD037',
+ 'no-space-in-emphasis',
+ ],
+ },
+ {
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 28,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 29,
},
lineNumber: 82,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 21,
},
- lineNumber: 88,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 84,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 28,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 29,
},
- lineNumber: 94,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 85,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 21,
},
- lineNumber: 104,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 87,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: 'n *',
+ errorDetail: null,
errorRange: [
- 5,
- 1,
+ 20,
+ 3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ editColumn: 21,
},
- lineNumber: 116,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 89,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
errorContext: 'n *',
errorDetail: null,
errorRange: [
- 9,
+ 20,
3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
+ editColumn: 21,
},
- lineNumber: 4,
+ lineNumber: 90,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
@@ -20574,14 +20116,14 @@ Generated by [AVA](https://avajs.dev).
errorContext: 'n *',
errorDetail: null,
errorRange: [
- 9,
+ 28,
3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
+ editColumn: 29,
},
- lineNumber: 14,
+ lineNumber: 93,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
@@ -20593,14 +20135,14 @@ Generated by [AVA](https://avajs.dev).
errorContext: 'n *',
errorDetail: null,
errorRange: [
- 9,
+ 28,
3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
+ editColumn: 29,
},
- lineNumber: 30,
+ lineNumber: 95,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
@@ -20612,14 +20154,14 @@ Generated by [AVA](https://avajs.dev).
errorContext: 'n *',
errorDetail: null,
errorRange: [
- 9,
+ 28,
3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
+ editColumn: 29,
},
- lineNumber: 83,
+ lineNumber: 97,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
@@ -20631,14 +20173,14 @@ Generated by [AVA](https://avajs.dev).
errorContext: 'n *',
errorDetail: null,
errorRange: [
- 9,
+ 28,
3,
],
fixInfo: {
deleteCount: 1,
- editColumn: 10,
+ editColumn: 29,
},
- lineNumber: 117,
+ lineNumber: 99,
ruleDescription: 'Spaces inside emphasis markers',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
@@ -20647,58 +20189,113 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: '`in `',
+ errorContext: 'n *',
errorDetail: null,
errorRange: [
- 7,
- 5,
+ 20,
+ 3,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 8,
- insertText: 'in',
+ deleteCount: 1,
+ editColumn: 21,
},
- lineNumber: 5,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 100,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
- errorContext: '`in `',
+ errorContext: 'n *',
errorDetail: null,
errorRange: [
- 7,
- 5,
+ 28,
+ 3,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 8,
- insertText: 'in',
+ deleteCount: 1,
+ editColumn: 29,
},
- lineNumber: 15,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 101,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD037',
+ 'no-space-in-emphasis',
+ ],
+ },
+ {
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 20,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 103,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ ruleNames: [
+ 'MD037',
+ 'no-space-in-emphasis',
+ ],
+ },
+ {
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 20,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 104,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ ruleNames: [
+ 'MD037',
+ 'no-space-in-emphasis',
+ ],
+ },
+ {
+ errorContext: 'n *',
+ errorDetail: null,
+ errorRange: [
+ 20,
+ 3,
+ ],
+ fixInfo: {
+ deleteCount: 1,
+ editColumn: 21,
+ },
+ lineNumber: 105,
+ ruleDescription: 'Spaces inside emphasis markers',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ ruleNames: [
+ 'MD037',
+ 'no-space-in-emphasis',
],
},
{
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 21,
+ lineNumber: 3,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20710,15 +20307,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 31,
+ lineNumber: 11,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20730,15 +20327,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 49,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 50,
insertText: 'in',
},
- lineNumber: 37,
+ lineNumber: 15,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20750,15 +20347,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 48,
+ lineNumber: 19,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20770,15 +20367,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 54,
+ lineNumber: 27,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20790,15 +20387,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 60,
+ lineNumber: 35,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20810,15 +20407,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 66,
+ lineNumber: 43,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20830,15 +20427,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 72,
+ lineNumber: 47,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20850,15 +20447,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 78,
+ lineNumber: 52,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20870,15 +20467,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 84,
+ lineNumber: 55,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20890,15 +20487,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 57,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 58,
insertText: 'in',
},
- lineNumber: 90,
+ lineNumber: 61,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -20906,504 +20503,159 @@ Generated by [AVA](https://avajs.dev).
'no-space-in-code',
],
},
- ],
- fixed: `# Inline Capture/Restore␊
- ␊
- hard tab␊
- space *in* emphasis {MD037}␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- hard tab␊
- space *in* emphasis {MD037}␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- hard tab␊
- space *in* emphasis {MD037}␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in* emphasis {MD037}␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- ␊
- hard tab␊
- space *in * emphasis␊
- space \`in \` code␊
- ␊
- ␊
- ␊
- hard tab {MD010}␊
- space *in* emphasis {MD037}␊
- space \`in \` code␊
- ␊
- ␊
- `,
- }
-
-## inline-configure-file-invalid.md
-
-> Snapshot 1
-
- {
- errors: [],
- fixed: `# Inline Configure File Invalid␊
- ␊
- Not normally too long of a line, but it would have been from an inline config.␊
- ␊
- ␊
- `,
- }
-
-## inline-configure-file-multiple-instances.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 30,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- ],
- fixed: `# Inline Configure File Multiple Instances␊
- ␊
- ***␊
- {MD035:3}␊
- ␊
- Trailing spaces: ␊
- ␊
- ␊
- ␊
- ***␊
- {MD035:17}␊
- ␊
- Trailing spaces: ␊
- ␊
- ␊
- ␊
- ***␊
- {MD035:30}␊
- ␊
- Trailing spaces: ␊
- `,
- }
-
-## inline-configure-file-multiple-lines.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: ---; Actual: ***',
- errorRange: null,
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Horizontal rule style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md035.md',
- ruleNames: [
- 'MD035',
- 'hr-style',
- ],
- },
- ],
- fixed: `# Inline Configure File Multiple Lines␊
- ␊
- ***␊
- {MD035:3}␊
- ␊
- Trailing spaces: ␊
- ␊
- ␊
- ␊
- ***␊
- {MD035:17}␊
- ␊
- Trailing spaces: ␊
- `,
- }
-
-## inline-configure-file-single-line.md
-
-> Snapshot 1
-
- {
- errors: [
- {
- errorContext: null,
- errorDetail: 'Expected: 70; Actual: 78',
- errorRange: [
- 71,
- 8,
- ],
- fixInfo: null,
- lineNumber: 3,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
- ruleNames: [
- 'MD013',
- 'line-length',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: 70; Actual: 85',
- errorRange: [
- 71,
- 15,
- ],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Line length',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md013.md',
- ruleNames: [
- 'MD013',
- 'line-length',
- ],
- },
- ],
- fixed: `# Inline Configure File Single Line␊
- ␊
- Not normally too long of a line, but it is here from an inline config. {MD013}␊
- ␊
- {MD013}␊
- `,
- }
-
-## inline-configure-file-violations.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '* w',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 10,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 11,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 3,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 67,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'h *',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 15,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 16,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 3,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 73,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
- ],
- fixed: `# Inline Configure File Violations␊
- ␊
- Emphasis *with* spaces {MD037}␊
- ␊
- Trailing spaces: ␊
- ␊
- ␊
- `,
- }
-
-## inline-disable-enable-file.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 3,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 76,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 9,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 5,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 77,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 9,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 13,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 79,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 9,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 21,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 82,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '`in `',
errorDetail: null,
errorRange: [
- 9,
- 3,
+ 57,
+ 5,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 10,
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 30,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 85,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 49,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 50,
insertText: 'in',
},
- lineNumber: 23,
+ lineNumber: 87,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -21415,15 +20667,15 @@ Generated by [AVA](https://avajs.dev).
errorContext: '`in `',
errorDetail: null,
errorRange: [
- 7,
+ 49,
5,
],
fixInfo: {
deleteCount: 3,
- editColumn: 8,
+ editColumn: 50,
insertText: 'in',
},
- lineNumber: 32,
+ lineNumber: 90,
ruleDescription: 'Spaces inside code span elements',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
@@ -21431,541 +20683,619 @@ Generated by [AVA](https://avajs.dev).
'no-space-in-code',
],
},
- ],
- fixed: `# Heading␊
- ␊
- hard tab {MD010}␊
- ␊
- space *in* emphasis {MD037}␊
- ␊
- space \`in \` code␊
- ␊
- ␊
- ␊
- hard tab␊
- ␊
- space *in* emphasis {MD037}␊
- ␊
- space \`in \` code␊
- ␊
- ␊
- ␊
- hard tab␊
- ␊
- space *in* emphasis {MD037}␊
- ␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- ␊
- ␊
- hard tab␊
- ␊
- space *in* emphasis {MD037}␊
- ␊
- space \`in\` code {MD038}␊
- ␊
- ␊
- `,
- }
-
-## inline-disable-enable.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 3,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 93,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 11,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 95,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 19,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 97,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 27,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 99,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 57,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 58,
+ insertText: 'in',
},
- lineNumber: 35,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 101,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 49,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 50,
+ insertText: 'in',
},
- lineNumber: 43,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 103,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: null,
- errorDetail: 'Column: 5',
+ errorContext: '`in `',
+ errorDetail: null,
errorRange: [
+ 49,
5,
- 1,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
+ deleteCount: 3,
+ editColumn: 50,
+ insertText: 'in',
},
- lineNumber: 45,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ lineNumber: 105,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD038',
+ 'no-space-in-code',
],
},
+ ],
+ fixed: `# Heading␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ before after␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ ␊
+ beforeafter␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab {MD010} ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in \` code␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ embedded {MD033} HTML␊
+ ␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in * emphasis / space \`in \` code ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in * emphasis / space \`in \` code␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code ␊
+ hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ ␊
+ `,
+ }
+
+## inline_html-allowed_elements.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: h2',
errorRange: [
- 5,
1,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 47,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: h2',
errorRange: [
- 5,
- 1,
+ 10,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 52,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: h2',
errorRange: [
- 5,
- 1,
+ 10,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 55,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 11,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 61,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 64,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 19,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 67,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 6,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 73,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 15,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 76,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 25,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 16,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 77,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 27,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 23,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 79,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
- ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ fixInfo: null,
+ lineNumber: 29,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleNames: [
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 24,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 82,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: article',
errorRange: [
- 5,
1,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 85,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 37,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: article',
errorRange: [
- 5,
1,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 93,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 42,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: br',
errorRange: [
- 5,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 95,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 46,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: Article',
errorRange: [
- 5,
1,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 97,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 50,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: Br',
errorRange: [
- 5,
1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 99,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 54,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
+ ],
+ fixed: `# inline_html-allowed_elements␊
+ ␊
+ This is allowed.
␊
+ ␊
+ This is not allowed. {MD033}
␊
+ ␊
+ This is allowed.
␊
+ ␊
+ This is not
allowed. {MD033}
␊
+ ␊
+ This is not
allowed. {MD033}
␊
+ ␊
+
␊
+ ␊
+
␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+ ␊
+ This is allowed.␊
+
␊
+ ␊
+ {MD033}␊
+ This is not allowed.␊
+ ␊
+ ␊
+ ␊
+ {MD033}␊
+ This is not allowed.␊
+ ␊
+
␊
+
{MD033}␊
+ ␊
+ ␊
+ ␊
+ {MD033}␊
+ This is not allowed.␊
+ ␊
+
␊
+
{MD033}␊
+ ␊
+ ␊
+ ␊
+ `,
+ }
+
+## inline_html.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
errorContext: null,
- errorDetail: 'Column: 5',
+ errorDetail: 'Element: h1',
errorRange: [
- 5,
1,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 5,
- insertText: ' ',
- },
- lineNumber: 101,
- ruleDescription: 'Hard tabs',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md',
+ fixInfo: null,
+ lineNumber: 3,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD010',
- 'no-hard-tabs',
+ 'MD033',
+ 'no-inline-html',
],
},
{
errorContext: null,
- errorDetail: 'Element: b',
+ errorDetail: 'Element: p',
errorRange: [
- 10,
+ 1,
3,
],
fixInfo: null,
- lineNumber: 69,
+ lineNumber: 5,
ruleDescription: 'Inline HTML',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
@@ -21974,3461 +21304,4641 @@ Generated by [AVA](https://avajs.dev).
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: element',
errorRange: [
- 28,
- 3,
+ 12,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 3,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 79,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: hr',
errorRange: [
- 28,
- 3,
+ 1,
+ 4,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 11,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 88,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: hr',
errorRange: [
- 20,
- 3,
+ 1,
+ 5,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 15,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 90,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: a',
errorRange: [
- 28,
- 3,
+ 1,
+ 30,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 19,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 94,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: a',
errorRange: [
- 20,
- 3,
+ 1,
+ 46,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 23,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 96,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: a',
errorRange: [
- 28,
- 3,
+ 1,
+ 51,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 27,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 98,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: element',
errorRange: [
- 20,
- 3,
+ 6,
+ 9,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 31,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 122,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: link-with',
errorRange: [
- 28,
- 3,
+ 4,
+ 11,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 35,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 124,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: reference',
errorRange: [
- 20,
- 3,
+ 16,
+ 11,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 39,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 128,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Element: reference',
errorRange: [
- 28,
- 3,
+ 16,
+ 11,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 43,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 130,
+ ruleDescription: 'Inline HTML',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD033',
+ 'no-inline-html',
],
},
{
- errorContext: 'n *',
+ errorContext: '`code Inline HTML Heading {MD033}␊
+ ␊
+ More inline HTML {MD033}␊
+ but this time on multiple lines␊
+
␊
+ ␊
+ This shouldn't trigger as it's inside a code block
␊
+ ␊
+ \`\`\`text␊
+ Neither should this as it's also in a code block {MD046:11}
␊
+ \`\`\`␊
+ ␊
+ ## Elements in code spans␊
+ ␊
+ Text \`\` text \\\` text␊
+ Text \\\` text \`\` text␊
+ Text \\\` text \\\` text \`\` text␊
+ Text \\\` text \`\` text \`\` text␊
+ Text \\\` text \`\` text \\\` text \`\` text␊
+ Text \\\`\\\` text \`\` text␊
+ Text \`\` text \\\` text \`\` text␊
+ ␊
+ ## Elements in multiple line code spans␊
+ ␊
+ Text \`code␊
+ \`␊
+ ␊
+ \`code␊
+ \`␊
+ ␊
+ \`code␊
+ \` text␊
+ ␊
+ Text \`code␊
+ code␊
+ ␊
+ \`␊
+ ␊
+ \`\`code \`\`\` \`\`\`\` \`␊
+ code␊
+
\`\`␊
+ ␊
+ Text \`code␊
+
␊
+ code\` text␊
+ ␊
+ Text \`code code␊
+ code \` text␊
+ ␊
+ Text \`code ␊
+ code code\` text␊
+ ␊
+ Text \`code code␊
+ code code␊
+ code code\` text␊
+ ␊
+ Text \`\`\`\`code code␊
+ code code␊
+ code code\`\`\`\` text␊
+ ␊
+ Text \`code code␊
+ code \` text␊
+ text \`code code␊
+ code code\` text␊
+ ␊
+ Text \`code code␊
+ code code\` text␊
+ text \`code code␊
+ code \` text␊
+ ␊
+ Text \`code code␊
+ code \` text␊
+ text \`code code␊
+ code \` text␊
+ ␊
+ Text \`code code␊
+ code\` text text \`code {MD033}␊
+ code code\` text␊
+ ␊
+ ## Slash in element name␊
+ ␊
+ Text **\\\\another\\directory\\\\** text␊
+ ␊
+ ## Self-closing elements␊
+ ␊
+
{MD033}␊
+ ␊
+
{MD033}␊
+ ␊
+ ## Links␊
+ ␊
+ Google {MD033}␊
+ ␊
+ Google {MD033}␊
+ ␊
+ Google {MD033}␊
+ ␊
+ ## Unterminated code span followed by element in code span␊
+ ␊
+ Text text \`text text␊
+ ␊
+ Text \`\` text␊
+ ␊
+ Text␊
+ text \`text␊
+ text␊
+ ␊
+ Text \`code code\` text␊
+ ␊
+ Text \`code code\` text {MD038}␊
+ ␊
+ \`\`\`lang␊
+ code {MD046:114}␊
+ ␊
+ ␊
+ \`\`\`␊
+ ␊
+ Text \`code code\` text␊
+ ␊
+ Text text {MD033}␊
+ ␊
+ A [][a-reference] is problematic. {MD033}␊
+ ␊
+ A [link with][a-] is okay.␊
+ ␊
+ A link with [a-][] is problematic. {MD033}␊
+ ␊
+ A link with [a-] is problematic. {MD033}␊
+ ␊
+ [a-reference]: https://example.com/␊
+ [a-]: https://example.com/␊
+ `,
+ }
+
+## invalid-ul-style-style.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: dash; Actual: asterisk',
errorRange: [
- 28,
- 3,
+ 1,
+ 2,
],
fixInfo: {
deleteCount: 1,
- editColumn: 29,
+ editColumn: 1,
+ insertText: '-',
},
- lineNumber: 61,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 3,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD004',
+ 'ul-style',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: dash; Actual: asterisk',
errorRange: [
- 28,
- 3,
+ 1,
+ 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 29,
+ editColumn: 3,
+ insertText: '-',
},
- lineNumber: 64,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 4,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD004',
+ 'ul-style',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: dash; Actual: plus',
errorRange: [
- 28,
- 3,
+ 1,
+ 2,
],
fixInfo: {
deleteCount: 1,
- editColumn: 29,
+ editColumn: 1,
+ insertText: '-',
},
- lineNumber: 67,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 6,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD004',
+ 'ul-style',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: dash; Actual: plus',
errorRange: [
- 28,
- 3,
+ 1,
+ 4,
],
fixInfo: {
deleteCount: 1,
- editColumn: 29,
+ editColumn: 3,
+ insertText: '-',
},
- lineNumber: 73,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 7,
+ ruleDescription: 'Unordered list style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD004',
+ 'ul-style',
],
},
+ ],
+ fixed: `# Invalid ul-style style␊
+ ␊
+ - Item {MD004}␊
+ - Item {MD004}␊
+ ␊
+ - Item {MD004}␊
+ - Item {MD004}␊
+ ␊
+ - Item␊
+ - Item␊
+ ␊
+ ␊
+ `,
+ }
+
+## jekyll_post.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'n *',
- errorDetail: null,
- errorRange: [
- 28,
- 3,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 76,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ errorContext: null,
+ errorDetail: 'Expected: h2; Actual: h3',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 16,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD001',
+ 'heading-increment',
],
},
{
- errorContext: 'n *',
+ errorContext: 'heading1 {MD025}',
errorDetail: null,
- errorRange: [
- 28,
- 3,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 12,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ ruleNames: [
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 77,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ },
+ ],
+ fixed: `---␊
+ layout: post␊
+ title: Hello World!␊
+ category: Meta␊
+ tags:␊
+ - tag␊
+ - another tag␊
+ - one more tag␊
+ url: https://example.com␊
+ excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊
+ ---␊
+ # heading1 {MD025}␊
+ ␊
+ This is just a sample post.␊
+ ␊
+ ### offending heading3 {MD001}␊
+ `,
+ }
+
+## jekyll_post_2.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: null,
+ errorDetail: 'Expected: h2; Actual: h3',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 17,
+ ruleDescription: 'Heading levels should only increment by one level at a time',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD001',
+ 'heading-increment',
],
},
{
- errorContext: 'n *',
+ errorContext: 'header1 {MD025}',
errorDetail: null,
- errorRange: [
- 28,
- 3,
- ],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 79,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 13,
+ ruleDescription: 'Multiple top-level headings in the same document',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD025',
+ 'single-title',
+ 'single-h1',
],
},
+ ],
+ fixed: `---␊
+ layout: post␊
+ title: Hello World!␊
+ category: Meta␊
+ tags:␊
+ - tag␊
+ - another tag␊
+ - one more tag␊
+ url: http://example.com␊
+ excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊
+ ---␊
+ ␊
+ # header1 {MD025}␊
+ ␊
+ This is just a sample post.␊
+ ␊
+ ### offending header3 {MD001}␊
+ `,
+ }
+
+## line-breaks-inside-code-spans.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'n *',
+ errorContext: '` code {MD038}',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 6,
+ 14,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 13,
+ editColumn: 7,
+ insertText: 'code {MD038}',
},
- lineNumber: 81,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 33,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: 'span `',
errorDetail: null,
errorRange: [
- 28,
- 3,
+ 1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 29,
+ deleteCount: 5,
+ editColumn: 1,
+ insertText: 'span',
},
- lineNumber: 82,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 39,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '` code {MD038}',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 6,
+ 14,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 13,
+ editColumn: 7,
+ insertText: 'code {MD038}',
},
- lineNumber: 84,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 49,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: 'span `',
errorDetail: null,
errorRange: [
- 28,
- 3,
+ 1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 29,
+ deleteCount: 5,
+ editColumn: 1,
+ insertText: 'span',
},
- lineNumber: 85,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 57,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: 'span `',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 1,
+ 6,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 5,
+ editColumn: 1,
+ insertText: 'span',
},
- lineNumber: 87,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 63,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: '` code {MD038}',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 6,
+ 14,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 13,
+ editColumn: 7,
+ insertText: 'code {MD038}',
},
- lineNumber: 89,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 65,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
{
- errorContext: 'n *',
+ errorContext: 'code code `',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 1,
+ 11,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 10,
+ editColumn: 1,
+ insertText: 'code code',
},
- lineNumber: 90,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 73,
+ ruleDescription: 'Spaces inside code span elements',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD038',
+ 'no-space-in-code',
],
},
+ ],
+ fixed: `# Line breaks inside code spans␊
+ ␊
+ Text \`code␊
+ span\` text.␊
+ ␊
+ Text \`code␊
+ span\` text \`code␊
+ span\` text.␊
+ ␊
+ Text \`code␊
+ span\` text \`code␊
+ span\` text \`code␊
+ span\` text.␊
+ ␊
+ Text \`code␊
+ span␊
+ code␊
+ span\` text.␊
+ ␊
+ Text \`code␊
+ span\` text \`code span\`␊
+ text \`code span\` text.␊
+ ␊
+ Text \`code␊
+ span\` text \`code span\` text␊
+ \`code span\` text.␊
+ ␊
+ \`code␊
+ span\` \`span\`␊
+ \`span\`␊
+ ␊
+ Text␊
+ text \`code {MD038}␊
+ span\` text␊
+ text.␊
+ ␊
+ Text␊
+ text \`code␊
+ span\` text {MD038}␊
+ text.␊
+ ␊
+ Text␊
+ text \`code␊
+ span code␊
+ span\` text␊
+ text.␊
+ ␊
+ Text␊
+ text \`code {MD038}␊
+ span code␊
+ span\` text␊
+ text.␊
+ ␊
+ Text␊
+ text \`code␊
+ span code␊
+ span\` text {MD038}␊
+ text.␊
+ ␊
+ Text␊
+ text \`code␊
+ span code␊
+ span\` text {MD038}␊
+ text␊
+ text \`code {MD038}␊
+ span code␊
+ span\` text␊
+ text.␊
+ ␊
+ "␊
+ Text \`code␊
+ code code\`text\` {MD038}␊
+ `,
+ }
+
+## link-fragments.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#valid-heading-is-an-image)',
errorDetail: null,
errorRange: [
- 28,
- 3,
+ 1,
+ 37,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 93,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 218,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#valid-heading-2004-)',
errorDetail: null,
errorRange: [
- 28,
- 3,
+ 1,
+ 31,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 95,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 220,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#valid-repeated-heading-3)',
errorDetail: null,
errorRange: [
- 28,
- 3,
+ 1,
+ 36,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 97,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 222,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#invalid-fragment)',
errorDetail: null,
errorRange: [
+ 1,
28,
- 3,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 29,
- },
- lineNumber: 99,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 224,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#myname)',
errorDetail: null,
errorRange: [
- 20,
- 3,
+ 1,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 226,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#hrefandid)',
+ errorDetail: 'Expected: #HREFandID; Actual: #hrefandid',
+ errorRange: [
+ 1,
+ 21,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 10,
+ editColumn: 11,
+ insertText: '#HREFandID',
},
- lineNumber: 100,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 228,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#name-for-other-element)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 34,
+ ],
+ fixInfo: null,
+ lineNumber: 230,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#name-should-be-ignored)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 34,
+ ],
+ fixInfo: null,
+ lineNumber: 232,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#not-an-id-should-be-ignored)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 39,
+ ],
+ fixInfo: null,
+ lineNumber: 234,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: null,
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 236,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[badref]: #missing "{MD051}"',
errorDetail: null,
errorRange: [
+ 1,
28,
- 3,
+ ],
+ fixInfo: null,
+ lineNumber: 241,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Title](#Valid-Fragments)',
+ errorDetail: 'Expected: #valid-fragments; Actual: #Valid-Fragments',
+ errorRange: [
+ 1,
+ 25,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 29,
+ deleteCount: 16,
+ editColumn: 9,
+ insertText: '#valid-fragments',
},
- lineNumber: 101,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 245,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: '[ALL CAPS](#NAMEDLINK)',
+ errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK',
errorRange: [
- 20,
- 3,
+ 1,
+ 22,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 10,
+ editColumn: 12,
+ insertText: '#namedlink',
},
- lineNumber: 103,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 247,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
- errorDetail: null,
+ errorContext: null,
+ errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 249,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[mixedref]: #idLINK "{MD051}"',
+ errorDetail: 'Expected: #idlink; Actual: #idLINK',
errorRange: [
- 20,
- 3,
+ 1,
+ 29,
],
fixInfo: {
- deleteCount: 1,
- editColumn: 21,
+ deleteCount: 7,
+ editColumn: 13,
+ insertText: '#idlink',
},
- lineNumber: 104,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ lineNumber: 254,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: 'n *',
+ errorContext: '[Invalid](#embedded-space)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 26,
+ ],
+ fixInfo: null,
+ lineNumber: 289,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#embedded_space)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 26,
+ ],
+ fixInfo: null,
+ lineNumber: 291,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#embedded)',
errorDetail: null,
errorRange: [
+ 1,
20,
- 3,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 21,
- },
- lineNumber: 105,
- ruleDescription: 'Spaces inside emphasis markers',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md037.md',
+ fixInfo: null,
+ lineNumber: 293,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD037',
- 'no-space-in-emphasis',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: '`in `',
+ errorContext: '[Invalid](#hyphen--run)',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 1,
+ 23,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 3,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 295,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: '`in `',
+ errorContext: '[Invalid](#hyphen-run)',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 1,
+ 22,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 11,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 297,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD051',
+ 'link-fragments',
],
},
{
- errorContext: '`in `',
+ errorContext: '[Invalid](#named-fragment-outside-heading)',
errorDetail: null,
errorRange: [
- 49,
- 5,
+ 1,
+ 42,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 50,
- insertText: 'in',
- },
- lineNumber: 15,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 299,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#UpperCase)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 21,
+ ],
+ fixInfo: null,
+ lineNumber: 301,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#uppercase)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 21,
+ ],
+ fixInfo: null,
+ lineNumber: 303,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L12-not-a-line-link)',
+ errorDetail: 'Expected: #l12-not-a-line-link; Actual: #L12-not-a-line-link',
+ errorRange: [
+ 1,
+ 31,
+ ],
+ fixInfo: {
+ deleteCount: 20,
+ editColumn: 11,
+ insertText: '#l12-not-a-line-link',
+ },
+ lineNumber: 305,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#l7)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 14,
+ ],
+ fixInfo: null,
+ lineNumber: 307,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 13,
+ ],
+ fixInfo: null,
+ lineNumber: 309,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L7extra)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 19,
+ ],
+ fixInfo: null,
+ lineNumber: 311,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 16,
+ ],
+ fixInfo: null,
+ lineNumber: 313,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30Cextra)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 21,
+ ],
+ fixInfo: null,
+ lineNumber: 315,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30L12)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 317,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C12)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 319,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C11-)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 19,
+ ],
+ fixInfo: null,
+ lineNumber: 321,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C11-L)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 20,
+ ],
+ fixInfo: null,
+ lineNumber: 323,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C11-L31C)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 23,
+ ],
+ fixInfo: null,
+ lineNumber: 325,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#L30C11-C31)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 22,
+ ],
+ fixInfo: null,
+ lineNumber: 327,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#C30)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 15,
+ ],
+ fixInfo: null,
+ lineNumber: 329,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#C11-C31)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 19,
+ ],
+ fixInfo: null,
+ lineNumber: 331,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ {
+ errorContext: '[Invalid](#C11-L4C31)',
+ errorDetail: null,
+ errorRange: [
+ 1,
+ 21,
+ ],
+ fixInfo: null,
+ lineNumber: 333,
+ ruleDescription: 'Link fragments should be valid',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ ruleNames: [
+ 'MD051',
+ 'link-fragments',
+ ],
+ },
+ ],
+ fixed: `# Valid/Invalid Link Fragments␊
+ ␊
+ ## Valid Fragments␊
+ ␊
+ [Valid](#validinvalid-link-fragments)␊
+ ␊
+ [Valid](#valid-fragments)␊
+ ␊
+ [Valid](#valid-h3-heading)␊
+ ␊
+ [Valid](#valid-heading-with-underscores-_)␊
+ ␊
+ [Valid](#valid-heading-with-emphasis)␊
+ ␊
+ [Valid](#valid-heading-with-code)␊
+ ␊
+ [Valid](#valid-heading-with-quotes--and-double-quotes-)␊
+ ␊
+ [Valid](#-valid-heading-with-emoji)␊
+ ␊
+ [Valid](#valid-heading--with-emoji-2)␊
+ ␊
+ [Valid](#valid-heading-2010-)␊
+ ␊
+ [Valid](#valid-heading-2004-%EF%B8%8F)␊
+ ␊
+ [Valid](#valid-closed-atx-heading)␊
+ ␊
+ [Valid](#valid-setext-heading)␊
+ ␊
+ [Valid](#valid-repeated-heading)␊
+ ␊
+ [Valid](#valid-repeated-heading-1)␊
+ ␊
+ [Valid](#valid-repeated-heading-2)␊
+ ␊
+ [Valid](#valid-heading-with-trailing-space-)␊
+ ␊
+ [Valid](#valid-heading-with-two-trailing-spaces--)␊
+ ␊
+ [Valid](#valid-heading-with-embedded--comment)␊
+ ␊
+ [Valid](#the-best-headin-for-testin-quotes)␊
+ ␊
+ [Valid](#valid-heading-about-lh%C3%B4pitals-rule)␊
+ ␊
+ [Valid](#valid-heading-about-lhôpitals-rule)␊
+ ␊
+ [Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)␊
+ ␊
+ [Valid](#en-tête-valide-dans-français-pour-vérification)␊
+ ␊
+ [Valid](#%E6%A0%87%E9%A2%98)␊
+ ␊
+ [Valid](#标题)␊
+ ␊
+ [Valid](#valid-heading-is-a-link)␊
+ ␊
+ [Valid](#valid-heading-has-a-link)␊
+ ␊
+ [Valid](#valid-heading-is-a-reference-link)␊
+ ␊
+ [Valid](#valid-heading-has-a-reference-link)␊
+ ␊
+ [Valid](#valid-heading-has-)␊
+ ␊
+ [Valid](#valid_heading-escaped_underscores)␊
+ ␊
+ [Valid](#valid\\_heading\\-escaped\\_underscores)␊
+ ␊
+ [Valid](#valid-heading-with_embedded_escaping)␊
+ ␊
+ [Valid](#namedlink)␊
+ ␊
+ [Valid](#idlink)␊
+ ␊
+ [Valid](#myident)␊
+ ␊
+ [Valid](#HREFandID)␊
+ ␊
+ [Valid](#id-for-other-element)␊
+ ␊
+ [Valid](#id-after-name)␊
+ ␊
+ [Valid][goodref]␊
+ ␊
+ [Valid][escapedref]␊
+ ␊
+ [Valid](#l12-not-a-line-link)␊
+ ␊
+ [Valid](#latex-style)␊
+ ␊
+ [Valid](#area-pi--r2)␊
+ ␊
+ [Valid](#L7)␊
+ ␊
+ [Valid](#L30-L31)␊
+ ␊
+ [Valid](#L3C24-L88)␊
+ ␊
+ [Valid](#L304-L314C98)␊
+ ␊
+ [Valid](#L200C4-L3244C2)␊
+ ␊
+ ### Valid H3 Heading␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading With Underscores _␊
+ ␊
+ Text␊
+ ␊
+ ### Valid *Heading* With _Emphasis_␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading With \`Code\`␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading With Quotes ' And Double Quotes "␊
+ ␊
+ Text␊
+ ␊
+ ### 🚀 Valid Heading With Emoji␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading 👀 With Emoji 2␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading 20.10 ❌␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Heading 20.04 ✔️␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Closed ATX Heading ###␊
+ ␊
+ Text␊
+ ␊
+ Valid Setext Heading␊
+ --------------------␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Repeated Heading␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Repeated Heading␊
+ ␊
+ Text␊
+ ␊
+ ### Valid Repeated Heading␊
+ ␊
+ ### Valid Heading With Trailing Space ␊
+ ␊
+ ### Valid Heading With Two Trailing Spaces ␊
+ ␊
+ ### Valid Heading With Embedded Comment␊
+ ␊
+ ### The "Best" Headin' for Testin' Quotes␊
+ ␊
+ ### Valid Heading About L'Hôpital's Rule␊
+ ␊
+ ### En-tête Valide Dans Français Pour Vérification␊
+ ␊
+ ### 标题␊
+ ␊
+ ### [Valid Heading Is a Link](https://example.com)␊
+ ␊
+ ### Valid Heading [Has a Link](https://example.com)␊
+ ␊
+ ### [Valid Heading Is a Reference Link][goodref]␊
+ ␊
+ ### Valid Heading [Has a Reference Link][goodref]␊
+ ␊
+ ### ![Valid Heading Is an Image](https://example.com)␊
+ ␊
+ ### Valid Heading Has ![an Image](https://example.com)␊
+ ␊
+ ### Valid_Heading Escaped_Underscores␊
+ ␊
+ ### Valid Heading\\-With\\_Embedded\\_Escaping␊
+ ␊
+ ### L12 Not A Line Link␊
+ ␊
+ ## $\\LaTeX$ Style␊
+ ␊
+ ## Area: $\\pi * r^2$␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ Text␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ ␊
+ [goodref]: #namedlink␊
+ ␊
+ [escapedref]: #valid\\_heading\\-escaped\\_underscores␊
+ ␊
+ ## Invalid Fragments␊
+ ␊
+ [Invalid](#valid-heading-is-an-image) {MD051}␊
+ ␊
+ [Invalid](#valid-heading-2004-) {MD051}␊
+ ␊
+ [Invalid](#valid-repeated-heading-3) {MD051}␊
+ ␊
+ [Invalid](#invalid-fragment) {MD051}␊
+ ␊
+ [Invalid](#myname) {MD051}␊
+ ␊
+ [Invalid](#HREFandID) {MD051}␊
+ ␊
+ [Invalid](#name-for-other-element) {MD051}␊
+ ␊
+ [Invalid](#name-should-be-ignored) {MD051}␊
+ ␊
+ [Invalid](#not-an-id-should-be-ignored) {MD051}␊
+ ␊
+ [Invalid {MD051}](#multi-line␊
+ "Title")␊
+ ␊
+ [Invalid][badref]␊
+ ␊
+ [badref]: #missing "{MD051}"␊
+ ␊
+ ## Inconsistent Case Fragments␊
+ ␊
+ [Title](#valid-fragments) {MD051}␊
+ ␊
+ [ALL CAPS](#namedlink) {MD051}␊
+ ␊
+ [Multi-line {MD051}](#NAMEDLINK␊
+ "Title")␊
+ ␊
+ [MiXeD][mixedref]␊
+ ␊
+ [mixedref]: #idlink "{MD051}"␊
+ ␊
+ ## Valid Named Fragments␊
+ ␊
+ [Valid](#named-fragment)␊
+ ␊
+ [Valid](#valid-heading-with-named-fragment-named-fragment)␊
+ ␊
+ [Valid](#another_fragment_123)␊
+ ␊
+ [Valid](#valid-heading-with-another-named-fragment-another_fragment_123)␊
+ ␊
+ [Valid](#closed-atx)␊
+ ␊
+ [Valid](#setext)␊
+ ␊
+ ### Valid Heading with Named Fragment {#named-fragment}␊
+ ␊
+ ### Valid Heading with Another Named Fragment {#another_fragment_123}␊
+ ␊
+ ### Valid Closed ATX Heading with Named Fragment {#closed-atx} ###␊
+ ␊
+ Valid Setext Heading with Named Fragment {#setext}␊
+ --------------------------------------------------␊
+ ␊
+ ## Invalid Named Fragments␊
+ ␊
+ ### Invalid Heading with Named Fragment {#embedded space}␊
+ ␊
+ ### Invalid Heading with Named Fragment {#hyphen--run}␊
+ ␊
+ ### Invalid Heading with Named Fragment {#UpperCase}␊
+ ␊
+ {#named-fragment-outside-heading}␊
+ ␊
+ [Invalid](#embedded-space) {MD051}␊
+ ␊
+ [Invalid](#embedded_space) {MD051}␊
+ ␊
+ [Invalid](#embedded) {MD051}␊
+ ␊
+ [Invalid](#hyphen--run) {MD051}␊
+ ␊
+ [Invalid](#hyphen-run) {MD051}␊
+ ␊
+ [Invalid](#named-fragment-outside-heading) {MD051}␊
+ ␊
+ [Invalid](#UpperCase) {MD051}␊
+ ␊
+ [Invalid](#uppercase) {MD051}␊
+ ␊
+ [Invalid](#l12-not-a-line-link) {MD051}␊
+ ␊
+ [Invalid](#l7) {MD051}␊
+ ␊
+ [Invalid](#L) {MD051}␊
+ ␊
+ [Invalid](#L7extra) {MD051}␊
+ ␊
+ [Invalid](#L30C) {MD051}␊
+ ␊
+ [Invalid](#L30Cextra) {MD051}␊
+ ␊
+ [Invalid](#L30L12) {MD051}␊
+ ␊
+ [Invalid](#L30C12) {MD051}␊
+ ␊
+ [Invalid](#L30C11-) {MD051}␊
+ ␊
+ [Invalid](#L30C11-L) {MD051}␊
+ ␊
+ [Invalid](#L30C11-L31C) {MD051}␊
+ ␊
+ [Invalid](#L30C11-C31) {MD051}␊
+ ␊
+ [Invalid](#C30) {MD051}␊
+ ␊
+ [Invalid](#C11-C31) {MD051}␊
+ ␊
+ [Invalid](#C11-L4C31) {MD051}␊
+ ␊
+ ␊
+ `,
+ }
+
+## link-style-autolink-only.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '[url](https://example.com)',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 26,
+ ],
+ fixInfo: {
+ deleteCount: 26,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url](https://example.com)',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 27,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 19,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url]()',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 28,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 28,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 27,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 7,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url]()',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 29,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 35,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com "tit...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 34,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 34,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 43,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 11,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url](https://example.com "ti...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 35,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 47,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 13,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com',
errorDetail: null,
- errorRange: [
- 57,
- 5,
- ],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 52,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url](https://example.com',
errorDetail: null,
- errorRange: [
- 57,
- 5,
- ],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 55,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 18,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[text][url]',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 11,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 11,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 61,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 21,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![text][url]',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 12,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 67,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url][]',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 7,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 7,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 73,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 25,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url][]',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 8,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 76,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 27,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url]',
errorDetail: null,
errorRange: [
- 57,
+ 6,
5,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 5,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 77,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 29,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '![url]',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 6,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 79,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com/embe...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 46,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 46,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 82,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 39,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com/back...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 44,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 44,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 85,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 41,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[embedded-backslash]',
errorDetail: null,
errorRange: [
- 49,
- 5,
+ 6,
+ 20,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 50,
- insertText: 'in',
+ deleteCount: 20,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 87,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 43,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[backslash-escape]',
errorDetail: null,
errorRange: [
- 49,
- 5,
+ 6,
+ 18,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 50,
- insertText: 'in',
+ deleteCount: 18,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 90,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 45,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](',
},
- lineNumber: 95,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 57,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com/\\(pa...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 37,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 37,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 97,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 59,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com/pa(r...',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 37,
],
fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
+ deleteCount: 37,
+ editColumn: 6,
+ insertText: '',
},
- lineNumber: 99,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 61,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](relative/path)',
errorDetail: null,
errorRange: [
- 57,
- 5,
+ 6,
+ 20,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 58,
- insertText: 'in',
- },
- lineNumber: 101,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 63,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](#fragment)',
errorDetail: null,
errorRange: [
- 49,
- 5,
+ 6,
+ 16,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 50,
- insertText: 'in',
- },
- lineNumber: 103,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 65,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`in `',
+ errorContext: '[url](https://example.com/an>g...',
errorDetail: null,
- errorRange: [
- 49,
- 5,
+ errorRange: [
+ 6,
+ 35,
],
- fixInfo: {
- deleteCount: 3,
- editColumn: 50,
- insertText: 'in',
- },
- lineNumber: 105,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 69,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
],
- fixed: `# Heading␊
+ fixed: `# Link Style Autolink Only␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- ␊
+ Text ![url](https://example.com) text {MD054}␊
␊
- hard tab / space *in * emphasis / space \`in \` code␊
+ Text text {MD054}␊
␊
- ␊
+ Text ![url]() text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- ␊
+ Text ![url](https://example.com "title") text {MD054}␊
␊
- hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text {MD054} [url](https://example.com␊
+ "title") text␊
␊
- ␊
+ Text {MD054} ![url](https://example.com␊
+ "title") text␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- ␊
+ Text ![text][url] text {MD054}␊
␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ Text text {MD054}␊
␊
- ␊
+ Text ![url][] text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- before after␊
+ Text ![url] text {MD054}␊
␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ Text text␊
␊
- beforeafter␊
+ [url]: https://example.com "title"␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ [undefined]␊
␊
- ␊
+ Text text {MD054}␊
␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
+ Text text {MD054}␊
␊
- ␊
+ Text text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- hard tab {MD010} ␊
+ Text text␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text␊
␊
- hard tab ␊
- ␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
␊
- ␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- ␊
- hard tab / space *in * emphasis / space \`in \` code␊
- ␊
+ Text [url]() text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- ␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in \` code␊
- ␊
+ Text text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text text {MD054}␊
␊
- embedded {MD033} HTML␊
+ Text [url](relative/path) text {MD054}␊
␊
- ␊
+ Text [url](#fragment) text {MD054}␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in * emphasis / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in * emphasis / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
- hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
+ Text text␊
␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in * emphasis / space \`in \` code ␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in * emphasis / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in * emphasis / space \`in \` code␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code ␊
- hard tab {MD010} / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- ␊
- hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
- hard tab / space *in* emphasis {MD037} / space \`in \` code␊
- hard tab / space *in* emphasis {MD037} / space \`in\` code {MD038}␊
+ Text [url](https://example.com/an>g) text {MD054}␊
␊
- `,
+ ␊
+ `,
}
-## inline_html-allowed_elements.md
+## link-style-autolink-or-inline.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Element: h2',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: null,
- lineNumber: 5,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: h2',
- errorRange: [
- 10,
- 4,
- ],
- fixInfo: null,
- lineNumber: 9,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: h2',
- errorRange: [
- 10,
- 4,
- ],
- fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: br',
- errorRange: [
- 1,
- 4,
- ],
- fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: br',
- errorRange: [
- 1,
- 5,
- ],
- fixInfo: null,
- lineNumber: 19,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '[text][url]',
+ errorDetail: null,
errorRange: [
- 1,
- 5,
+ 6,
+ 11,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 11,
+ editColumn: 6,
+ insertText: '[text](https://example.com)',
+ },
lineNumber: 21,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '![text][url]',
+ errorDetail: null,
errorRange: [
- 1,
6,
+ 12,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 12,
+ editColumn: 6,
+ insertText: '![text](https://example.com)',
+ },
lineNumber: 23,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '[url][]',
+ errorDetail: null,
errorRange: [
- 1,
- 15,
+ 6,
+ 7,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 7,
+ editColumn: 6,
+ insertText: '[url](https://example.com)',
+ },
lineNumber: 25,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '![url][]',
+ errorDetail: null,
errorRange: [
- 1,
- 16,
+ 6,
+ 8,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 8,
+ editColumn: 6,
+ insertText: '![url](https://example.com)',
+ },
lineNumber: 27,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '[url]',
+ errorDetail: null,
errorRange: [
- 1,
- 23,
+ 6,
+ 5,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 5,
+ editColumn: 6,
+ insertText: '[url](https://example.com)',
+ },
lineNumber: 29,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: br',
+ errorContext: '![url]',
+ errorDetail: null,
errorRange: [
- 1,
- 24,
+ 6,
+ 6,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 6,
+ editColumn: 6,
+ insertText: '![url](https://example.com)',
+ },
lineNumber: 31,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: article',
- errorRange: [
- 1,
- 9,
- ],
- fixInfo: null,
- lineNumber: 37,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: article',
- errorRange: [
- 1,
- 9,
- ],
- fixInfo: null,
- lineNumber: 42,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
- ruleNames: [
- 'MD033',
- 'no-inline-html',
- ],
- },
- {
- errorContext: null,
- errorDetail: 'Element: br',
- errorRange: [
- 1,
- 5,
- ],
- fixInfo: null,
- lineNumber: 46,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: Article',
+ errorContext: '[embedded-backslash]',
+ errorDetail: null,
errorRange: [
- 1,
- 9,
+ 6,
+ 20,
],
- fixInfo: null,
- lineNumber: 50,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 20,
+ editColumn: 6,
+ insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)',
+ },
+ lineNumber: 43,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: Br',
+ errorContext: '[backslash-escape]',
+ errorDetail: null,
errorRange: [
- 1,
- 5,
+ 6,
+ 18,
],
- fixInfo: null,
- lineNumber: 54,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 18,
+ editColumn: 6,
+ insertText: '[backslash-escape](https://example.com/backslash\\[escape)',
+ },
+ lineNumber: 45,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
],
- fixed: `# inline_html-allowed_elements␊
+ fixed: `# Link Style Autolink or Inline␊
␊
- This is allowed.
␊
+ Text [url](https://example.com) text␊
␊
- This is not allowed. {MD033}
␊
+ Text ![url](https://example.com) text␊
␊
- This is allowed.
␊
+ Text [url]() text␊
␊
- This is not
allowed. {MD033}
␊
+ Text ![url]() text␊
␊
- This is not
allowed. {MD033}
␊
+ Text [url](https://example.com "title") text␊
␊
-
␊
+ Text ![url](https://example.com "title") text␊
␊
-
␊
+ Text [url](https://example.com␊
+ "title") text␊
␊
-
{MD033}␊
+ Text ![url](https://example.com␊
+ "title") text␊
␊
-
{MD033}␊
+ Text [text](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text ![text](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text [url](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text ![url](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text [url](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text ![url](https://example.com) text {MD054}␊
␊
-
{MD033}␊
+ Text text␊
␊
- ␊
- This is allowed.␊
-
␊
+ [url]: https://example.com "title"␊
+ ␊
+ [undefined]␊
+ ␊
+ Text [url](https://example.com/embedded\\3backslash) text␊
+ ␊
+ Text [url](https://example.com/backslash\\[escape) text␊
+ ␊
+ Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊
+ ␊
+ Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊
+ ␊
+ Text text␊
+ ␊
+ Text text␊
+ ␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
+ ␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
+ ␊
+ Text [url]() text␊
+ ␊
+ Text [url]() text␊
+ ␊
+ Text [url](https://example.com/\\(parens\\)) text␊
+ ␊
+ Text [url](https://example.com/pa(re(ns))) text␊
+ ␊
+ Text [url](relative/path) text␊
␊
- {MD033}␊
- This is not allowed.␊
- ␊
+ Text [url](#fragment) text␊
␊
- ␊
- {MD033}␊
- This is not allowed.␊
- ␊
-
␊
-
{MD033}␊
- ␊
+ Text text␊
␊
- ␊
- {MD033}␊
- This is not allowed.␊
- ␊
-
␊
-
{MD033}␊
- ␊
+ Text [url](https://example.com/an>g) text␊
␊
␊
`,
}
-## inline_html.md
+## link-style-autolink-or-reference.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Element: h1',
+ errorContext: '[url](https://example.com)',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 6,
+ 26,
],
- fixInfo: null,
+ fixInfo: {
+ deleteCount: 26,
+ editColumn: 6,
+ insertText: '',
+ },
lineNumber: 3,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: p',
+ errorContext: '![url](https://example.com)',
+ errorDetail: null,
errorRange: [
- 1,
- 3,
+ 6,
+ 27,
],
fixInfo: null,
lineNumber: 5,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: element',
+ errorContext: '[url]()',
+ errorDetail: null,
errorRange: [
- 12,
- 9,
+ 6,
+ 28,
],
- fixInfo: null,
- lineNumber: 79,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 28,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 7,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: hr',
+ errorContext: '![url]()',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 6,
+ 29,
],
fixInfo: null,
- lineNumber: 88,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 9,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: hr',
+ errorContext: '[url](https://example.com "tit...',
+ errorDetail: null,
errorRange: [
- 1,
- 5,
+ 6,
+ 34,
],
- fixInfo: null,
- lineNumber: 90,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 34,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 11,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: a',
+ errorContext: '![url](https://example.com "ti...',
+ errorDetail: null,
errorRange: [
- 1,
- 30,
+ 6,
+ 35,
],
fixInfo: null,
- lineNumber: 94,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 13,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: a',
- errorRange: [
- 1,
- 46,
+ errorContext: '[url](https://example.com',
+ errorDetail: null,
+ errorRange: null,
+ fixInfo: null,
+ lineNumber: 15,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
],
+ },
+ {
+ errorContext: '![url](https://example.com',
+ errorDetail: null,
+ errorRange: null,
fixInfo: null,
- lineNumber: 96,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ lineNumber: 18,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: a',
+ errorContext: '[url](https://example.com/embe...',
+ errorDetail: null,
errorRange: [
- 1,
- 51,
+ 6,
+ 46,
],
- fixInfo: null,
- lineNumber: 98,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 46,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 39,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: element',
+ errorContext: '[url](https://example.com/back...',
+ errorDetail: null,
errorRange: [
6,
- 9,
+ 44,
],
- fixInfo: null,
- lineNumber: 122,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 44,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 41,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: link-with',
+ errorContext: '[url](',
+ },
+ lineNumber: 57,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Element: reference',
+ errorContext: '[url](https://example.com/\\(pa...',
+ errorDetail: null,
errorRange: [
- 16,
- 11,
+ 6,
+ 37,
],
- fixInfo: null,
- lineNumber: 130,
- ruleDescription: 'Inline HTML',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md033.md',
+ fixInfo: {
+ deleteCount: 37,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 59,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD033',
- 'no-inline-html',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '`code ',
},
- lineNumber: 112,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ lineNumber: 61,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
- errorRange: null,
+ errorContext: '[url](relative/path)',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 20,
+ ],
fixInfo: null,
- lineNumber: 11,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 63,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: indented; Actual: fenced',
- errorRange: null,
+ errorContext: '[url](#fragment)',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 16,
+ ],
fixInfo: null,
- lineNumber: 114,
- ruleDescription: 'Code block style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md046.md',
+ lineNumber: 65,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD046',
- 'code-block-style',
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[url](https://example.com/an>g...',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 35,
+ ],
+ fixInfo: null,
+ lineNumber: 69,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
],
},
],
- fixed: `# Regular heading␊
- ␊
- Inline HTML Heading {MD033}
␊
- ␊
- More inline HTML {MD033}␊
- but this time on multiple lines␊
-
␊
- ␊
- This shouldn't trigger as it's inside a code block
␊
- ␊
- \`\`\`text␊
- Neither should this as it's also in a code block {MD046:11}
␊
- \`\`\`␊
- ␊
- ## Elements in code spans␊
- ␊
- Text \`\` text \\\` text␊
- Text \\\` text \`\` text␊
- Text \\\` text \\\` text \`\` text␊
- Text \\\` text \`\` text \`\` text␊
- Text \\\` text \`\` text \\\` text \`\` text␊
- Text \\\`\\\` text \`\` text␊
- Text \`\` text \\\` text \`\` text␊
- ␊
- ## Elements in multiple line code spans␊
- ␊
- Text \`code␊
- \`␊
- ␊
- \`code␊
- \`␊
- ␊
- \`code␊
- \` text␊
- ␊
- Text \`code␊
- code␊
- ␊
- \`␊
+ fixed: `# Link Style Autolink or Reference␊
␊
- \`\`code \`\`\` \`\`\`\` \`␊
- code␊
-
\`\`␊
+ Text text {MD054}␊
␊
- Text \`code␊
-
␊
- code\` text␊
+ Text ![url](https://example.com) text {MD054}␊
␊
- Text \`code code␊
- code \` text␊
+ Text text {MD054}␊
␊
- Text \`code ␊
- code code\` text␊
+ Text ![url]() text {MD054}␊
␊
- Text \`code code␊
- code code␊
- code code\` text␊
+ Text text {MD054}␊
␊
- Text \`\`\`\`code code␊
- code code␊
- code code\`\`\`\` text␊
+ Text ![url](https://example.com "title") text {MD054}␊
␊
- Text \`code code␊
- code \` text␊
- text \`code code␊
- code code\` text␊
+ Text {MD054} [url](https://example.com␊
+ "title") text␊
␊
- Text \`code code␊
- code code\` text␊
- text \`code code␊
- code \` text␊
+ Text {MD054} ![url](https://example.com␊
+ "title") text␊
␊
- Text \`code code␊
- code \` text␊
- text \`code code␊
- code \` text␊
+ Text [text][url] text␊
␊
- Text \`code code␊
- code\` text text \`code {MD033}␊
- code code\` text␊
+ Text ![text][url] text␊
␊
- ## Slash in element name␊
+ Text [url][] text␊
␊
- Text **\\\\another\\directory\\\\** text␊
+ Text ![url][] text␊
␊
- ## Self-closing elements␊
+ Text [url] text␊
␊
-
{MD033}␊
+ Text ![url] text␊
␊
-
{MD033}␊
+ Text text␊
␊
- ## Links␊
+ [url]: https://example.com "title"␊
␊
- Google {MD033}␊
+ [undefined]␊
␊
- Google {MD033}␊
+ Text text {MD054}␊
␊
- Google {MD033}␊
+ Text text {MD054}␊
␊
- ## Unterminated code span followed by element in code span␊
+ Text [embedded-backslash] text␊
␊
- Text text \`text text␊
+ Text [backslash-escape] text␊
␊
- Text \`\` text␊
+ Text text␊
␊
- Text␊
- text \`text␊
- text␊
+ Text text␊
␊
- Text \`code code\` text␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
␊
- Text \`code code\` text {MD038}␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
␊
- \`\`\`lang␊
- code {MD046:114}␊
+ Text [url]() text {MD054}␊
␊
- ␊
- \`\`\`␊
+ Text text {MD054}␊
␊
- Text \`code code\` text␊
+ Text text {MD054}␊
␊
- Text text {MD033}␊
+ Text text {MD054}␊
␊
- A [][a-reference] is problematic. {MD033}␊
+ Text [url](relative/path) text {MD054}␊
␊
- A [link with][a-] is okay.␊
+ Text [url](#fragment) text {MD054}␊
␊
- A link with [a-][] is problematic. {MD033}␊
+ Text text␊
␊
- A link with [a-] is problematic. {MD033}␊
+ Text [url](https://example.com/an>g) text {MD054}␊
␊
- [a-reference]: https://example.com/␊
- [a-]: https://example.com/␊
+ ␊
`,
}
-## invalid-ul-style-style.md
+## link-style-collapsed-only.md
> Snapshot 1
{
errors: [
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: asterisk',
+ errorContext: '[url](https://example.com)',
+ errorDetail: null,
errorRange: [
- 1,
- 2,
+ 6,
+ 26,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '-',
- },
+ fixInfo: null,
lineNumber: 3,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: asterisk',
+ errorContext: '![url](https://example.com)',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 6,
+ 27,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 3,
- insertText: '-',
- },
- lineNumber: 4,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: plus',
+ errorContext: '[url]()',
+ errorDetail: null,
errorRange: [
- 1,
- 2,
+ 6,
+ 28,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 1,
- insertText: '-',
- },
- lineNumber: 6,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ fixInfo: null,
+ lineNumber: 7,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
- errorDetail: 'Expected: dash; Actual: plus',
+ errorContext: '![url]()',
+ errorDetail: null,
errorRange: [
- 1,
- 4,
+ 6,
+ 29,
],
- fixInfo: {
- deleteCount: 1,
- editColumn: 3,
- insertText: '-',
- },
- lineNumber: 7,
- ruleDescription: 'Unordered list style',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md004.md',
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD004',
- 'ul-style',
+ 'MD054',
+ 'link-image-style',
],
},
- ],
- fixed: `# Invalid ul-style style␊
- ␊
- - Item {MD004}␊
- - Item {MD004}␊
- ␊
- - Item {MD004}␊
- - Item {MD004}␊
- ␊
- - Item␊
- - Item␊
- ␊
- ␊
- `,
- }
-
-## jekyll_post.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: h2; Actual: h3',
- errorRange: null,
+ errorContext: '[url](https://example.com "tit...',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 34,
+ ],
fixInfo: null,
- lineNumber: 16,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
+ lineNumber: 11,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD001',
- 'heading-increment',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'heading1 {MD025}',
+ errorContext: '![url](https://example.com "ti...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 6,
+ 35,
+ ],
fixInfo: null,
- lineNumber: 12,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 13,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD054',
+ 'link-image-style',
],
},
- ],
- fixed: `---␊
- layout: post␊
- title: Hello World!␊
- category: Meta␊
- tags:␊
- - tag␊
- - another tag␊
- - one more tag␊
- url: https://example.com␊
- excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊
- ---␊
- # heading1 {MD025}␊
- ␊
- This is just a sample post.␊
- ␊
- ### offending heading3 {MD001}␊
- `,
- }
-
-## jekyll_post_2.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: null,
- errorDetail: 'Expected: h2; Actual: h3',
+ errorContext: '[url](https://example.com',
+ errorDetail: null,
errorRange: null,
fixInfo: null,
- lineNumber: 17,
- ruleDescription: 'Heading levels should only increment by one level at a time',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md001.md',
+ lineNumber: 15,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD001',
- 'heading-increment',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'header1 {MD025}',
+ errorContext: '![url](https://example.com',
errorDetail: null,
errorRange: null,
fixInfo: null,
- lineNumber: 13,
- ruleDescription: 'Multiple top-level headings in the same document',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md025.md',
+ lineNumber: 18,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD025',
- 'single-title',
- 'single-h1',
+ 'MD054',
+ 'link-image-style',
],
},
- ],
- fixed: `---␊
- layout: post␊
- title: Hello World!␊
- category: Meta␊
- tags:␊
- - tag␊
- - another tag␊
- - one more tag␊
- url: http://example.com␊
- excerpt: Hello World! Vestibulum imperdiet adipiscing arcu, quis aliquam dolor condimentum dapibus. Aliquam fermentum leo aliquet quam volutpat et molestie mauris mattis. Suspendisse semper consequat velit in suscipit.␊
- ---␊
- ␊
- # header1 {MD025}␊
- ␊
- This is just a sample post.␊
- ␊
- ### offending header3 {MD001}␊
- `,
- }
-
-## line-breaks-inside-code-spans.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '` code {MD038}',
+ errorContext: '[text][url]',
errorDetail: null,
errorRange: [
6,
- 14,
+ 11,
],
- fixInfo: {
- deleteCount: 13,
- editColumn: 7,
- insertText: 'code {MD038}',
- },
- lineNumber: 33,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 21,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'span `',
+ errorContext: '![text][url]',
errorDetail: null,
errorRange: [
- 1,
6,
+ 12,
],
- fixInfo: {
- deleteCount: 5,
- editColumn: 1,
- insertText: 'span',
- },
- lineNumber: 39,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 23,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '` code {MD038}',
+ errorContext: '[url]',
errorDetail: null,
errorRange: [
6,
- 14,
+ 5,
],
- fixInfo: {
- deleteCount: 13,
- editColumn: 7,
- insertText: 'code {MD038}',
- },
- lineNumber: 49,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 29,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'span `',
+ errorContext: '![url]',
errorDetail: null,
errorRange: [
- 1,
+ 6,
6,
],
- fixInfo: {
- deleteCount: 5,
- editColumn: 1,
- insertText: 'span',
- },
- lineNumber: 57,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 31,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'span `',
+ errorContext: '',
errorDetail: null,
errorRange: [
- 1,
6,
+ 21,
],
- fixInfo: {
- deleteCount: 5,
- editColumn: 1,
- insertText: 'span',
- },
- lineNumber: 63,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 33,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '` code {MD038}',
+ errorContext: '[url](https://example.com/embe...',
errorDetail: null,
errorRange: [
6,
- 14,
+ 46,
],
- fixInfo: {
- deleteCount: 13,
- editColumn: 7,
- insertText: 'code {MD038}',
- },
- lineNumber: 65,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 39,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: 'code code `',
+ errorContext: '[url](https://example.com/back...',
errorDetail: null,
errorRange: [
- 1,
- 11,
+ 6,
+ 44,
],
- fixInfo: {
- deleteCount: 10,
- editColumn: 1,
- insertText: 'code code',
- },
- lineNumber: 73,
- ruleDescription: 'Spaces inside code span elements',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md038.md',
+ fixInfo: null,
+ lineNumber: 41,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD038',
- 'no-space-in-code',
+ 'MD054',
+ 'link-image-style',
],
},
- ],
- fixed: `# Line breaks inside code spans␊
- ␊
- Text \`code␊
- span\` text.␊
- ␊
- Text \`code␊
- span\` text \`code␊
- span\` text.␊
- ␊
- Text \`code␊
- span\` text \`code␊
- span\` text \`code␊
- span\` text.␊
- ␊
- Text \`code␊
- span␊
- code␊
- span\` text.␊
- ␊
- Text \`code␊
- span\` text \`code span\`␊
- text \`code span\` text.␊
- ␊
- Text \`code␊
- span\` text \`code span\` text␊
- \`code span\` text.␊
- ␊
- \`code␊
- span\` \`span\`␊
- \`span\`␊
- ␊
- Text␊
- text \`code {MD038}␊
- span\` text␊
- text.␊
- ␊
- Text␊
- text \`code␊
- span\` text {MD038}␊
- text.␊
- ␊
- Text␊
- text \`code␊
- span code␊
- span\` text␊
- text.␊
- ␊
- Text␊
- text \`code {MD038}␊
- span code␊
- span\` text␊
- text.␊
- ␊
- Text␊
- text \`code␊
- span code␊
- span\` text {MD038}␊
- text.␊
- ␊
- Text␊
- text \`code␊
- span code␊
- span\` text {MD038}␊
- text␊
- text \`code {MD038}␊
- span code␊
- span\` text␊
- text.␊
- ␊
- "␊
- Text \`code␊
- code code\`text\` {MD038}␊
- `,
- }
-
-## link-fragments.md
-
-> Snapshot 1
-
- {
- errors: [
{
- errorContext: '[Invalid](#valid-heading-is-an-image)',
+ errorContext: '[embedded-backslash]',
errorDetail: null,
errorRange: [
- 1,
- 37,
+ 6,
+ 20,
],
fixInfo: null,
- lineNumber: 218,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 43,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[backslash-escape]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 18,
+ ],
+ fixInfo: null,
+ lineNumber: 45,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '',
errorDetail: null,
errorRange: [
- 1,
- 39,
+ 6,
+ 30,
],
fixInfo: null,
- lineNumber: 234,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 67,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: null,
+ errorContext: '[url](https://example.com/an>g...',
errorDetail: null,
- errorRange: null,
+ errorRange: [
+ 6,
+ 35,
+ ],
fixInfo: null,
- lineNumber: 236,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 69,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
+ ],
+ fixed: `# Link Style Collapsed Only␊
+ ␊
+ Text [url](https://example.com) text {MD054}␊
+ ␊
+ Text ![url](https://example.com) text {MD054}␊
+ ␊
+ Text [url]() text {MD054}␊
+ ␊
+ Text ![url]() text {MD054}␊
+ ␊
+ Text [url](https://example.com "title") text {MD054}␊
+ ␊
+ Text ![url](https://example.com "title") text {MD054}␊
+ ␊
+ Text {MD054} [url](https://example.com␊
+ "title") text␊
+ ␊
+ Text {MD054} ![url](https://example.com␊
+ "title") text␊
+ ␊
+ Text [text][url] text {MD054}␊
+ ␊
+ Text ![text][url] text {MD054}␊
+ ␊
+ Text [url][] text␊
+ ␊
+ Text ![url][] text␊
+ ␊
+ Text [url] text {MD054}␊
+ ␊
+ Text ![url] text {MD054}␊
+ ␊
+ Text text {MD054}␊
+ ␊
+ [url]: https://example.com "title"␊
+ ␊
+ [undefined]␊
+ ␊
+ Text [url](https://example.com/embedded\\3backslash) text {MD054}␊
+ ␊
+ Text [url](https://example.com/backslash\\[escape) text {MD054}␊
+ ␊
+ Text [embedded-backslash] text {MD054}␊
+ ␊
+ Text [backslash-escape] text {MD054}␊
+ ␊
+ Text text {MD054}␊
+ ␊
+ Text text {MD054}␊
+ ␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
+ ␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
+ ␊
+ Text [url]() text {MD054}␊
+ ␊
+ Text [url]() text {MD054}␊
+ ␊
+ Text [url](https://example.com/\\(parens\\)) text {MD054}␊
+ ␊
+ Text [url](https://example.com/pa(re(ns))) text {MD054}␊
+ ␊
+ Text [url](relative/path) text {MD054}␊
+ ␊
+ Text [url](#fragment) text {MD054}␊
+ ␊
+ Text text {MD054}␊
+ ␊
+ Text [url](https://example.com/an>g) text {MD054}␊
+ ␊
+ ␊
+ `,
+ }
+
+## link-style-full-only.md
+
+> Snapshot 1
+
+ {
+ errors: [
{
- errorContext: '[badref]: #missing "{MD051}"',
+ errorContext: '[url](https://example.com)',
errorDetail: null,
errorRange: [
- 1,
- 28,
+ 6,
+ 26,
],
fixInfo: null,
- lineNumber: 241,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 3,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Title](#Valid-Fragments)',
- errorDetail: 'Expected: #valid-fragments; Actual: #Valid-Fragments',
+ errorContext: '![url](https://example.com)',
+ errorDetail: null,
errorRange: [
- 1,
- 25,
+ 6,
+ 27,
],
- fixInfo: {
- deleteCount: 16,
- editColumn: 9,
- insertText: '#valid-fragments',
- },
- lineNumber: 245,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ fixInfo: null,
+ lineNumber: 5,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[ALL CAPS](#NAMEDLINK)',
- errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK',
+ errorContext: '[url]()',
+ errorDetail: null,
errorRange: [
- 1,
- 22,
- ],
- fixInfo: {
- deleteCount: 10,
- editColumn: 12,
- insertText: '#namedlink',
- },
- lineNumber: 247,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
- ruleNames: [
- 'MD051',
- 'link-fragments',
+ 6,
+ 28,
],
- },
- {
- errorContext: null,
- errorDetail: 'Expected: #namedlink; Actual: #NAMEDLINK',
- errorRange: null,
fixInfo: null,
- lineNumber: 249,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 7,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[mixedref]: #idLINK "{MD051}"',
- errorDetail: 'Expected: #idlink; Actual: #idLINK',
+ errorContext: '![url]()',
+ errorDetail: null,
errorRange: [
- 1,
+ 6,
29,
],
- fixInfo: {
- deleteCount: 7,
- editColumn: 13,
- insertText: '#idlink',
- },
- lineNumber: 254,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ fixInfo: null,
+ lineNumber: 9,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#embedded-space)',
+ errorContext: '[url](https://example.com "tit...',
errorDetail: null,
errorRange: [
- 1,
- 26,
+ 6,
+ 34,
],
fixInfo: null,
- lineNumber: 289,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 11,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#embedded_space)',
+ errorContext: '![url](https://example.com "ti...',
errorDetail: null,
errorRange: [
- 1,
- 26,
+ 6,
+ 35,
],
fixInfo: null,
- lineNumber: 291,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 13,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#embedded)',
+ errorContext: '[url](https://example.com',
errorDetail: null,
- errorRange: [
- 1,
- 20,
- ],
+ errorRange: null,
fixInfo: null,
- lineNumber: 293,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 15,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#hyphen--run)',
+ errorContext: '![url](https://example.com',
errorDetail: null,
- errorRange: [
- 1,
- 23,
- ],
+ errorRange: null,
fixInfo: null,
- lineNumber: 295,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 18,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#hyphen-run)',
+ errorContext: '[url][]',
errorDetail: null,
errorRange: [
- 1,
- 22,
+ 6,
+ 7,
],
fixInfo: null,
- lineNumber: 297,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 25,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#named-fragment-outside-heading)',
+ errorContext: '![url][]',
errorDetail: null,
errorRange: [
- 1,
- 42,
+ 6,
+ 8,
],
fixInfo: null,
- lineNumber: 299,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 27,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#UpperCase)',
+ errorContext: '[url]',
errorDetail: null,
errorRange: [
- 1,
- 21,
+ 6,
+ 5,
],
fixInfo: null,
- lineNumber: 301,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 29,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#uppercase)',
+ errorContext: '![url]',
errorDetail: null,
errorRange: [
- 1,
- 21,
+ 6,
+ 6,
],
fixInfo: null,
- lineNumber: 303,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 31,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#L12-not-a-line-link)',
- errorDetail: 'Expected: #l12-not-a-line-link; Actual: #L12-not-a-line-link',
+ errorContext: '',
+ errorDetail: null,
errorRange: [
- 1,
- 31,
+ 6,
+ 21,
],
- fixInfo: {
- deleteCount: 20,
- editColumn: 11,
- insertText: '#l12-not-a-line-link',
- },
- lineNumber: 305,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ fixInfo: null,
+ lineNumber: 33,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#l7)',
+ errorContext: '[url](https://example.com/embe...',
errorDetail: null,
errorRange: [
- 1,
- 14,
+ 6,
+ 46,
],
fixInfo: null,
- lineNumber: 307,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 39,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#L)',
+ errorContext: '[url](https://example.com/back...',
errorDetail: null,
errorRange: [
- 1,
- 13,
+ 6,
+ 44,
],
fixInfo: null,
- lineNumber: 309,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 41,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#L7extra)',
+ errorContext: '[embedded-backslash]',
errorDetail: null,
errorRange: [
- 1,
- 19,
+ 6,
+ 20,
],
fixInfo: null,
- lineNumber: 311,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 43,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#L30C)',
+ errorContext: '[backslash-escape]',
errorDetail: null,
errorRange: [
- 1,
- 16,
+ 6,
+ 18,
],
fixInfo: null,
- lineNumber: 313,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 45,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#L30Cextra)',
+ errorContext: '',
errorDetail: null,
errorRange: [
- 1,
- 19,
+ 6,
+ 30,
],
fixInfo: null,
- lineNumber: 331,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 67,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
{
- errorContext: '[Invalid](#C11-L4C31)',
+ errorContext: '[url](https://example.com/an>g...',
errorDetail: null,
errorRange: [
- 1,
- 21,
+ 6,
+ 35,
],
fixInfo: null,
- lineNumber: 333,
- ruleDescription: 'Link fragments should be valid',
- ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md051.md',
+ lineNumber: 69,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
ruleNames: [
- 'MD051',
- 'link-fragments',
+ 'MD054',
+ 'link-image-style',
],
},
],
- fixed: `# Valid/Invalid Link Fragments␊
- ␊
- ## Valid Fragments␊
- ␊
- [Valid](#validinvalid-link-fragments)␊
- ␊
- [Valid](#valid-fragments)␊
- ␊
- [Valid](#valid-h3-heading)␊
- ␊
- [Valid](#valid-heading-with-underscores-_)␊
- ␊
- [Valid](#valid-heading-with-emphasis)␊
- ␊
- [Valid](#valid-heading-with-code)␊
- ␊
- [Valid](#valid-heading-with-quotes--and-double-quotes-)␊
- ␊
- [Valid](#-valid-heading-with-emoji)␊
- ␊
- [Valid](#valid-heading--with-emoji-2)␊
- ␊
- [Valid](#valid-heading-2010-)␊
- ␊
- [Valid](#valid-heading-2004-%EF%B8%8F)␊
- ␊
- [Valid](#valid-closed-atx-heading)␊
- ␊
- [Valid](#valid-setext-heading)␊
- ␊
- [Valid](#valid-repeated-heading)␊
+ fixed: `# Link Style Full Only␊
␊
- [Valid](#valid-repeated-heading-1)␊
+ Text [url](https://example.com) text {MD054}␊
␊
- [Valid](#valid-repeated-heading-2)␊
+ Text ![url](https://example.com) text {MD054}␊
␊
- [Valid](#valid-heading-with-trailing-space-)␊
+ Text [url]() text {MD054}␊
␊
- [Valid](#valid-heading-with-two-trailing-spaces--)␊
+ Text ![url]() text {MD054}␊
␊
- [Valid](#valid-heading-with-embedded--comment)␊
+ Text [url](https://example.com "title") text {MD054}␊
␊
- [Valid](#the-best-headin-for-testin-quotes)␊
+ Text ![url](https://example.com "title") text {MD054}␊
␊
- [Valid](#valid-heading-about-lh%C3%B4pitals-rule)␊
+ Text {MD054} [url](https://example.com␊
+ "title") text␊
␊
- [Valid](#valid-heading-about-lhôpitals-rule)␊
+ Text {MD054} ![url](https://example.com␊
+ "title") text␊
␊
- [Valid](#en-t%C3%AAte-valide-dans-fran%C3%A7ais-pour-v%C3%A9rification)␊
+ Text [text][url] text␊
␊
- [Valid](#en-tête-valide-dans-français-pour-vérification)␊
+ Text ![text][url] text␊
␊
- [Valid](#%E6%A0%87%E9%A2%98)␊
+ Text [url][] text {MD054}␊
␊
- [Valid](#标题)␊
+ Text ![url][] text {MD054}␊
␊
- [Valid](#valid-heading-is-a-link)␊
+ Text [url] text {MD054}␊
␊
- [Valid](#valid-heading-has-a-link)␊
+ Text ![url] text {MD054}␊
␊
- [Valid](#valid-heading-is-a-reference-link)␊
+ Text text {MD054}␊
␊
- [Valid](#valid-heading-has-a-reference-link)␊
+ [url]: https://example.com "title"␊
␊
- [Valid](#valid-heading-has-)␊
+ [undefined]␊
␊
- [Valid](#valid_heading-escaped_underscores)␊
+ Text [url](https://example.com/embedded\\3backslash) text {MD054}␊
␊
- [Valid](#valid\\_heading\\-escaped\\_underscores)␊
+ Text [url](https://example.com/backslash\\[escape) text {MD054}␊
␊
- [Valid](#valid-heading-with_embedded_escaping)␊
+ Text [embedded-backslash] text {MD054}␊
␊
- [Valid](#namedlink)␊
+ Text [backslash-escape] text {MD054}␊
␊
- [Valid](#idlink)␊
+ Text text {MD054}␊
␊
- [Valid](#myident)␊
+ Text text {MD054}␊
␊
- [Valid](#HREFandID)␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
␊
- [Valid](#id-for-other-element)␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
␊
- [Valid](#id-after-name)␊
+ Text [url]() text {MD054}␊
␊
- [Valid][goodref]␊
+ Text [url]() text {MD054}␊
␊
- [Valid][escapedref]␊
+ Text [url](https://example.com/\\(parens\\)) text {MD054}␊
␊
- [Valid](#l12-not-a-line-link)␊
+ Text [url](https://example.com/pa(re(ns))) text {MD054}␊
␊
- [Valid](#latex-style)␊
+ Text [url](relative/path) text {MD054}␊
␊
- [Valid](#area-pi--r2)␊
+ Text [url](#fragment) text {MD054}␊
␊
- [Valid](#L7)␊
+ Text text {MD054}␊
␊
- [Valid](#L30-L31)␊
+ Text [url](https://example.com/an>g) text {MD054}␊
␊
- [Valid](#L3C24-L88)␊
+ ␊
+ `,
+ }
+
+## link-style-inline-only.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '[text][url]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 11,
+ ],
+ fixInfo: {
+ deleteCount: 11,
+ editColumn: 6,
+ insertText: '[text](https://example.com)',
+ },
+ lineNumber: 21,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '![text][url]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 12,
+ ],
+ fixInfo: {
+ deleteCount: 12,
+ editColumn: 6,
+ insertText: '![text](https://example.com)',
+ },
+ lineNumber: 23,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[url][]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 7,
+ ],
+ fixInfo: {
+ deleteCount: 7,
+ editColumn: 6,
+ insertText: '[url](https://example.com)',
+ },
+ lineNumber: 25,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '![url][]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 8,
+ ],
+ fixInfo: {
+ deleteCount: 8,
+ editColumn: 6,
+ insertText: '![url](https://example.com)',
+ },
+ lineNumber: 27,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[url]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 5,
+ ],
+ fixInfo: {
+ deleteCount: 5,
+ editColumn: 6,
+ insertText: '[url](https://example.com)',
+ },
+ lineNumber: 29,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '![url]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 6,
+ ],
+ fixInfo: {
+ deleteCount: 6,
+ editColumn: 6,
+ insertText: '![url](https://example.com)',
+ },
+ lineNumber: 31,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 21,
+ ],
+ fixInfo: {
+ deleteCount: 21,
+ editColumn: 6,
+ insertText: '[https://example.com](https://example.com)',
+ },
+ lineNumber: 33,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[embedded-backslash]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 20,
+ ],
+ fixInfo: {
+ deleteCount: 20,
+ editColumn: 6,
+ insertText: '[embedded-backslash](https://example.com/embedded\\3backslash)',
+ },
+ lineNumber: 43,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[backslash-escape]',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 18,
+ ],
+ fixInfo: {
+ deleteCount: 18,
+ editColumn: 6,
+ insertText: '[backslash-escape](https://example.com/backslash\\[escape)',
+ },
+ lineNumber: 45,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 30,
+ ],
+ fixInfo: {
+ deleteCount: 30,
+ editColumn: 6,
+ insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)',
+ },
+ lineNumber: 67,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ ],
+ fixed: `# Link Style Inline Only␊
␊
- [Valid](#L304-L314C98)␊
+ Text [url](https://example.com) text␊
␊
- [Valid](#L200C4-L3244C2)␊
+ Text ![url](https://example.com) text␊
␊
- ### Valid H3 Heading␊
+ Text [url]() text␊
␊
- Text␊
+ Text ![url]() text␊
␊
- ### Valid Heading With Underscores _␊
+ Text [url](https://example.com "title") text␊
␊
- Text␊
+ Text ![url](https://example.com "title") text␊
␊
- ### Valid *Heading* With _Emphasis_␊
+ Text [url](https://example.com␊
+ "title") text␊
␊
- Text␊
+ Text ![url](https://example.com␊
+ "title") text␊
␊
- ### Valid Heading With \`Code\`␊
+ Text [text](https://example.com) text {MD054}␊
␊
- Text␊
+ Text ![text](https://example.com) text {MD054}␊
␊
- ### Valid Heading With Quotes ' And Double Quotes "␊
+ Text [url](https://example.com) text {MD054}␊
␊
- Text␊
+ Text ![url](https://example.com) text {MD054}␊
␊
- ### 🚀 Valid Heading With Emoji␊
+ Text [url](https://example.com) text {MD054}␊
␊
- Text␊
+ Text ![url](https://example.com) text {MD054}␊
␊
- ### Valid Heading 👀 With Emoji 2␊
+ Text [https://example.com](https://example.com) text {MD054}␊
␊
- Text␊
+ [url]: https://example.com "title"␊
␊
- ### Valid Heading 20.10 ❌␊
+ [undefined]␊
␊
- Text␊
+ Text [url](https://example.com/embedded\\3backslash) text␊
␊
- ### Valid Heading 20.04 ✔️␊
+ Text [url](https://example.com/backslash\\[escape) text␊
␊
- Text␊
+ Text [embedded-backslash](https://example.com/embedded\\3backslash) text {MD054}␊
␊
- ### Valid Closed ATX Heading ###␊
+ Text [backslash-escape](https://example.com/backslash\\[escape) text {MD054}␊
␊
- Text␊
+ Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊
␊
- Valid Setext Heading␊
- --------------------␊
+ Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊
␊
- Text␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
␊
- ### Valid Repeated Heading␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
␊
- Text␊
+ Text [url]() text␊
␊
- ### Valid Repeated Heading␊
+ Text [url]() text␊
␊
- Text␊
+ Text [url](https://example.com/\\(parens\\)) text␊
␊
- ### Valid Repeated Heading␊
+ Text [url](https://example.com/pa(re(ns))) text␊
␊
- ### Valid Heading With Trailing Space ␊
+ Text [url](relative/path) text␊
␊
- ### Valid Heading With Two Trailing Spaces ␊
+ Text [url](#fragment) text␊
␊
- ### Valid Heading With Embedded Comment␊
+ Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊
␊
- ### The "Best" Headin' for Testin' Quotes␊
+ Text [url](https://example.com/an>g) text␊
␊
- ### Valid Heading About L'Hôpital's Rule␊
+ ␊
+ `,
+ }
+
+## link-style-inline-or-reference.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 21,
+ ],
+ fixInfo: {
+ deleteCount: 21,
+ editColumn: 6,
+ insertText: '[https://example.com](https://example.com)',
+ },
+ lineNumber: 33,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 30,
+ ],
+ fixInfo: {
+ deleteCount: 30,
+ editColumn: 6,
+ insertText: '[https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns)',
+ },
+ lineNumber: 67,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ ],
+ fixed: `# Link Style Inline or Reference␊
␊
- ### En-tête Valide Dans Français Pour Vérification␊
+ Text [url](https://example.com) text␊
␊
- ### 标题␊
+ Text ![url](https://example.com) text␊
␊
- ### [Valid Heading Is a Link](https://example.com)␊
+ Text [url]() text␊
␊
- ### Valid Heading [Has a Link](https://example.com)␊
+ Text ![url]() text␊
␊
- ### [Valid Heading Is a Reference Link][goodref]␊
+ Text [url](https://example.com "title") text␊
␊
- ### Valid Heading [Has a Reference Link][goodref]␊
+ Text ![url](https://example.com "title") text␊
␊
- ### ![Valid Heading Is an Image](https://example.com)␊
+ Text [url](https://example.com␊
+ "title") text␊
␊
- ### Valid Heading Has ![an Image](https://example.com)␊
+ Text ![url](https://example.com␊
+ "title") text␊
␊
- ### Valid_Heading Escaped_Underscores␊
+ Text [text][url] text␊
␊
- ### Valid Heading\\-With\\_Embedded\\_Escaping␊
+ Text ![text][url] text␊
␊
- ### L12 Not A Line Link␊
+ Text [url][] text␊
␊
- ## $\\LaTeX$ Style␊
+ Text ![url][] text␊
␊
- ## Area: $\\pi * r^2$␊
+ Text [url] text␊
␊
- ␊
+ Text ![url] text␊
␊
- ␊
+ Text [https://example.com](https://example.com) text {MD054}␊
␊
- ␊
+ [url]: https://example.com "title"␊
␊
- Text␊
+ [undefined]␊
␊
- ␊
+ Text [url](https://example.com/embedded\\3backslash) text␊
␊
- ␊
+ Text [url](https://example.com/backslash\\[escape) text␊
␊
- ␊
+ Text [embedded-backslash] text␊
␊
- ␊
+ Text [backslash-escape] text␊
␊
- [goodref]: #namedlink␊
+ Text [https://example.com/embedded\\3backslash](https://example.com/embedded\\3backslash) text {MD054}␊
␊
- [escapedref]: #valid\\_heading\\-escaped\\_underscores␊
+ Text [https://example.com/backslash\\[no-escape](https://example.com/backslash[no-escape) text {MD054}␊
␊
- ## Invalid Fragments␊
+ [embedded-backslash]: https://example.com/embedded\\3backslash␊
␊
- [Invalid](#valid-heading-is-an-image) {MD051}␊
+ [backslash-escape]: https://example.com/backslash\\[escape␊
␊
- [Invalid](#valid-heading-2004-) {MD051}␊
+ Text [url]() text␊
␊
- [Invalid](#valid-repeated-heading-3) {MD051}␊
+ Text [url]() text␊
␊
- [Invalid](#invalid-fragment) {MD051}␊
+ Text [url](https://example.com/\\(parens\\)) text␊
␊
- [Invalid](#myname) {MD051}␊
+ Text [url](https://example.com/pa(re(ns))) text␊
␊
- [Invalid](#HREFandID) {MD051}␊
+ Text [url](relative/path) text␊
␊
- [Invalid](#name-for-other-element) {MD051}␊
+ Text [url](#fragment) text␊
␊
- [Invalid](#name-should-be-ignored) {MD051}␊
+ Text [https://example.com/pa)re(ns](https://example.com/pa\\)re\\(ns) text {MD054}␊
␊
- [Invalid](#not-an-id-should-be-ignored) {MD051}␊
+ Text [url](https://example.com/an>g) text␊
␊
- [Invalid {MD051}](#multi-line␊
- "Title")␊
+ ␊
+ `,
+ }
+
+## link-style-no-url-inline-not-possible.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 21,
+ ],
+ fixInfo: {
+ deleteCount: 21,
+ editColumn: 6,
+ insertText: '[https://example.com](https://example.com)',
+ },
+ lineNumber: 27,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ ],
+ fixed: `# Link Style No URL Inline Not Possible␊
␊
- [Invalid][badref]␊
+ Text [https://example.com](https://example.com) text␊
␊
- [badref]: #missing "{MD051}"␊
+ Text ![https://example.com](https://example.com) text␊
␊
- ## Inconsistent Case Fragments␊
+ Text [https://example.com]() text␊
␊
- [Title](#valid-fragments) {MD051}␊
+ Text ![https://example.com]() text␊
␊
- [ALL CAPS](#namedlink) {MD051}␊
+ Text [https://example.com](https://example.com/page "title") text␊
␊
- [Multi-line {MD051}](#NAMEDLINK␊
- "Title")␊
+ Text ![https://example.com](https://example.com/page "title") text␊
␊
- [MiXeD][mixedref]␊
+ Text [https://example.com](https://example.com "title") text␊
␊
- [mixedref]: #idlink "{MD051}"␊
+ Text ![https://example.com](https://example.com "title") text␊
␊
- ## Valid Named Fragments␊
+ Text [https://example.com][url] text␊
␊
- [Valid](#named-fragment)␊
+ Text ![https://example.com][url] text␊
␊
- [Valid](#valid-heading-with-named-fragment-named-fragment)␊
+ Text [https://example.com][url-title] text␊
␊
- [Valid](#another_fragment_123)␊
+ Text ![https://example.com][url-title] text␊
␊
- [Valid](#valid-heading-with-another-named-fragment-another_fragment_123)␊
+ Text [https://example.com](https://example.com) text {MD054}␊
␊
- [Valid](#closed-atx)␊
+ [url]: https://example.com␊
+ [url-title]: https://example.com "title"␊
␊
- [Valid](#setext)␊
+ Text [link](https://example.com) text␊
␊
- ### Valid Heading with Named Fragment {#named-fragment}␊
+ Text ![link](https://example.com) text␊
␊
- ### Valid Heading with Another Named Fragment {#another_fragment_123}␊
+ Text [link][url] text␊
␊
- ### Valid Closed ATX Heading with Named Fragment {#closed-atx} ###␊
+ Text ![link][url] text␊
␊
- Valid Setext Heading with Named Fragment {#setext}␊
- --------------------------------------------------␊
+ Text [url][] text␊
␊
- ## Invalid Named Fragments␊
+ Text ![url][] text␊
␊
- ### Invalid Heading with Named Fragment {#embedded space}␊
+ Text [url] text␊
␊
- ### Invalid Heading with Named Fragment {#hyphen--run}␊
+ Text ![url] text␊
␊
- ### Invalid Heading with Named Fragment {#UpperCase}␊
+ Text [file.md](file.md) text␊
␊
- {#named-fragment-outside-heading}␊
+ ␊
+ `,
+ }
+
+## link-style-no-url-inline-possible.md
+
+> Snapshot 1
+
+ {
+ errors: [
+ {
+ errorContext: '[https://example.com](https://...',
+ errorDetail: null,
+ errorRange: [
+ 6,
+ 42,
+ ],
+ fixInfo: {
+ deleteCount: 42,
+ editColumn: 6,
+ insertText: '',
+ },
+ lineNumber: 3,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ {
+ errorContext: '[https://example.com](',
+ },
+ lineNumber: 7,
+ ruleDescription: 'Link and image style',
+ ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
+ ruleNames: [
+ 'MD054',
+ 'link-image-style',
+ ],
+ },
+ ],
+ fixed: `# Link Style No URL Inline Possible␊
␊
- [Invalid](#embedded-space) {MD051}␊
+ Text text {MD054}␊
␊
- [Invalid](#embedded_space) {MD051}␊
+ Text ![https://example.com](https://example.com) text␊
␊
- [Invalid](#embedded) {MD051}␊
+ Text text {MD054}␊
␊
- [Invalid](#hyphen--run) {MD051}␊
+ Text ![https://example.com]() text␊
␊
- [Invalid](#hyphen-run) {MD051}␊
+ Text [https://example.com](https://example.com/page "title") text␊
␊
- [Invalid](#named-fragment-outside-heading) {MD051}␊
+ Text ![https://example.com](https://example.com/page "title") text␊
␊
- [Invalid](#UpperCase) {MD051}␊
+ Text [https://example.com](https://example.com "title") text␊
␊
- [Invalid](#uppercase) {MD051}␊
+ Text ![https://example.com](https://example.com "title") text␊
␊
- [Invalid](#l12-not-a-line-link) {MD051}␊
+ Text [https://example.com][url] text␊
␊
- [Invalid](#l7) {MD051}␊
+ Text ![https://example.com][url] text␊
␊
- [Invalid](#L) {MD051}␊
+ Text [https://example.com][url-title] text␊
␊
- [Invalid](#L7extra) {MD051}␊
+ Text ![https://example.com][url-title] text␊
␊
- [Invalid](#L30C) {MD051}␊
+ Text text␊
␊
- [Invalid](#L30Cextra) {MD051}␊
+ [url]: https://example.com␊
+ [url-title]: https://example.com "title"␊
␊
- [Invalid](#L30L12) {MD051}␊
+ Text [link](https://example.com) text␊
␊
- [Invalid](#L30C12) {MD051}␊
+ Text ![link](https://example.com) text␊
␊
- [Invalid](#L30C11-) {MD051}␊
+ Text [link][url] text␊
␊
- [Invalid](#L30C11-L) {MD051}␊
+ Text ![link][url] text␊
␊
- [Invalid](#L30C11-L31C) {MD051}␊
+ Text [url][] text␊
␊
- [Invalid](#L30C11-C31) {MD051}␊
+ Text ![url][] text␊
␊
- [Invalid](#C30) {MD051}␊
+ Text [url] text␊
␊
- [Invalid](#C11-C31) {MD051}␊
+ Text ![url] text␊
␊
- [Invalid](#C11-L4C31) {MD051}␊
+ Text [file.md](file.md) text␊
␊
␊
`,
}
-## link-style-autolink-only.md
+## link-style-none.md
> Snapshot 1
@@ -25441,11 +25951,7 @@ Generated by [AVA](https://avajs.dev).
6,
26,
],
- fixInfo: {
- deleteCount: 26,
- editColumn: 6,
- insertText: '',
- },
+ fixInfo: null,
lineNumber: 3,
ruleDescription: 'Link and image style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
@@ -25474,14 +25980,10 @@ Generated by [AVA](https://avajs.dev).
errorContext: '[url]()',
errorDetail: null,
errorRange: [
- 6,
- 28,
- ],
- fixInfo: {
- deleteCount: 28,
- editColumn: 6,
- insertText: '',
- },
+ 6,
+ 28,
+ ],
+ fixInfo: null,
lineNumber: 7,
ruleDescription: 'Link and image style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
@@ -25513,11 +26015,7 @@ Generated by [AVA](https://avajs.dev).
6,
34,
],
- fixInfo: {
- deleteCount: 34,
- editColumn: 6,
- insertText: '',
- },
+ fixInfo: null,
lineNumber: 11,
ruleDescription: 'Link and image style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
@@ -25575,11 +26073,7 @@ Generated by [AVA](https://avajs.dev).
6,
11,
],
- fixInfo: {
- deleteCount: 11,
- editColumn: 6,
- insertText: '',
- },
+ fixInfo: null,
lineNumber: 21,
ruleDescription: 'Link and image style',
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md054.md',
@@ -25611,11 +26105,7 @@ Generated by [AVA](https://avajs.dev).
6,
7,
],
- fixInfo: {
- deleteCount: 7,
- editColumn: 6,
- insertText: '