diff --git a/demo/markdownlint-browser.js b/demo/markdownlint-browser.js index 72c90cbc..37ff289a 100644 --- a/demo/markdownlint-browser.js +++ b/demo/markdownlint-browser.js @@ -2162,7 +2162,7 @@ function getEnabledRulesPerLineNumber(ruleList, lines, frontMatterLines, noInlin var disableNextLine = action === "DISABLE-NEXT-LINE"; if (disableLine || disableNextLine) { var nextLineNumber = frontMatterLines.length + lineNumber + (disableNextLine ? 1 : 0); - enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber] || {}); + enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber]); } } // Handle inline comments diff --git a/lib/markdownlint.js b/lib/markdownlint.js index a42f0c07..e489aa8a 100644 --- a/lib/markdownlint.js +++ b/lib/markdownlint.js @@ -481,7 +481,7 @@ function getEnabledRulesPerLineNumber( applyEnableDisable( action, parameter, - enabledRulesPerLineNumber[nextLineNumber] || {} + enabledRulesPerLineNumber[nextLineNumber] ); } } diff --git a/test/4-tabs-MD010.md b/test/4-tabs-MD010.md index 40a5086f..6ecf23bb 100644 --- a/test/4-tabs-MD010.md +++ b/test/4-tabs-MD010.md @@ -3,9 +3,9 @@ text and text 2 {MD010} texts with trailing spaces {MD010} diff --git a/test/MD001-MD010.md b/test/MD001-MD010.md index 81d97746..ae7870e8 100644 --- a/test/MD001-MD010.md +++ b/test/MD001-MD010.md @@ -30,7 +30,7 @@ Text text {MD010} 12. Twelve diff --git a/test/MD011-MD021.md b/test/MD011-MD021.md index 9ead9abd..5efa51a6 100644 --- a/test/MD011-MD021.md +++ b/test/MD011-MD021.md @@ -28,7 +28,7 @@ A (reversed)[link] example. {MD011} {MD012:7} {MD013:8} {MD013:10} diff --git a/test/MD031-MD040.md b/test/MD031-MD040.md index 61cdb1f3..73477e9a 100644 --- a/test/MD031-MD040.md +++ b/test/MD031-MD040.md @@ -65,7 +65,7 @@ multi-line * emphasis. {MD037} {MD031:3} {MD035:11} {MD040:21} diff --git a/test/MD041-MD050.md b/test/MD041-MD050.md index d28bd66c..32e14263 100644 --- a/test/MD041-MD050.md +++ b/test/MD041-MD050.md @@ -47,18 +47,18 @@ Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. { Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050} Missing newline character {MD043} {MD047} \ No newline at end of file diff --git a/test/alternate_top_level_heading.md b/test/alternate_top_level_heading.md index 68403c5f..3340b9b8 100644 --- a/test/alternate_top_level_heading.md +++ b/test/alternate_top_level_heading.md @@ -3,13 +3,13 @@ ## Another one {MD025} diff --git a/test/atx_closed_heading_spacing.md b/test/atx_closed_heading_spacing.md index 4976dda7..0cdb1c1b 100644 --- a/test/atx_closed_heading_spacing.md +++ b/test/atx_closed_heading_spacing.md @@ -19,6 +19,6 @@ ## Heading 10 {MD003} \# diff --git a/test/atx_heading_spacing.md b/test/atx_heading_spacing.md index dda90c9e..8f5a1e62 100644 --- a/test/atx_heading_spacing.md +++ b/test/atx_heading_spacing.md @@ -5,6 +5,6 @@ ## Heading 3 {MD019} diff --git a/test/blanks-around-headings-0-2.md b/test/blanks-around-headings-0-2.md index f24ee64b..88a62504 100644 --- a/test/blanks-around-headings-0-2.md +++ b/test/blanks-around-headings-0-2.md @@ -24,9 +24,9 @@ Text ## Fig diff --git a/test/break-all-the-rules.md b/test/break-all-the-rules.md index cfb5bf79..e1882d55 100644 --- a/test/break-all-the-rules.md +++ b/test/break-all-the-rules.md @@ -101,16 +101,16 @@ Strong **with** different style {MD050} {MD053:100} diff --git a/test/bulleted_list_not_at_beginning_of_line.md b/test/bulleted_list_not_at_beginning_of_line.md index b3fa9e2e..db638744 100644 --- a/test/bulleted_list_not_at_beginning_of_line.md +++ b/test/bulleted_list_not_at_beginning_of_line.md @@ -59,5 +59,5 @@ Text * Item {MD006} {MD007} diff --git a/test/code-block-with-language-allowed.md b/test/code-block-with-language-allowed.md index 0e6b9708..f6f3c83b 100644 --- a/test/code-block-with-language-allowed.md +++ b/test/code-block-with-language-allowed.md @@ -50,11 +50,11 @@ if (true) { ``` diff --git a/test/code-block-with-tabs-allowed.md b/test/code-block-with-tabs-allowed.md index bb23732a..fd43cacd 100644 --- a/test/code-block-with-tabs-allowed.md +++ b/test/code-block-with-tabs-allowed.md @@ -35,7 +35,7 @@ if (true) { Line with hard tab. {MD010} diff --git a/test/code-blocks-prefixed-by-spaces.md b/test/code-blocks-prefixed-by-spaces.md index 4634473b..fc994147 100644 --- a/test/code-blocks-prefixed-by-spaces.md +++ b/test/code-blocks-prefixed-by-spaces.md @@ -39,7 +39,7 @@ 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} diff --git a/test/code_block_dollar_fence-empty.md b/test/code_block_dollar_fence-empty.md index 6da9b5cf..e8664e4d 100644 --- a/test/code_block_dollar_fence-empty.md +++ b/test/code_block_dollar_fence-empty.md @@ -14,7 +14,7 @@ ``` diff --git a/test/code_block_fenced.md b/test/code_block_fenced.md index 5caf8e75..1b301e4c 100644 --- a/test/code_block_fenced.md +++ b/test/code_block_fenced.md @@ -19,7 +19,7 @@ But we'll do another: Final text is here diff --git a/test/code_block_indented.md b/test/code_block_indented.md index c46d2afb..0e050772 100644 --- a/test/code_block_indented.md +++ b/test/code_block_indented.md @@ -23,7 +23,7 @@ One last one: with an empty indented line. diff --git a/test/code_fence_style_backtick.md b/test/code_fence_style_backtick.md index bccec5fc..0d072b8a 100644 --- a/test/code_fence_style_backtick.md +++ b/test/code_fence_style_backtick.md @@ -21,7 +21,7 @@ This is not {MD048:17} ~~~ diff --git a/test/code_fence_style_tilde.md b/test/code_fence_style_tilde.md index 0182f968..00187737 100644 --- a/test/code_fence_style_tilde.md +++ b/test/code_fence_style_tilde.md @@ -21,7 +21,7 @@ This is ~~~ diff --git a/test/default-spaces-MD010.md b/test/default-spaces-MD010.md index fa053bb7..85d43b48 100644 --- a/test/default-spaces-MD010.md +++ b/test/default-spaces-MD010.md @@ -3,6 +3,6 @@ text and text 2 {MD010} texts with trailing spaces {MD010} diff --git a/test/emphasis_style_asterisk.md b/test/emphasis_style_asterisk.md index 9afcf052..ba51bcd2 100644 --- a/test/emphasis_style_asterisk.md +++ b/test/emphasis_style_asterisk.md @@ -9,8 +9,8 @@ apple*banana*cherry, apple*banana*, *banana*cherry apple_banana_cherry, apple_banana_, _banana_cherry diff --git a/test/emphasis_style_underscore.md b/test/emphasis_style_underscore.md index 8e781874..1323c69a 100644 --- a/test/emphasis_style_underscore.md +++ b/test/emphasis_style_underscore.md @@ -9,8 +9,8 @@ apple*banana*cherry, apple*banana*, *banana*cherry apple_banana_cherry, apple_banana_, _banana_cherry diff --git a/test/fenced-code-in-list.md b/test/fenced-code-in-list.md index 79b3acf2..32d330b7 100644 --- a/test/fenced-code-in-list.md +++ b/test/fenced-code-in-list.md @@ -35,7 +35,7 @@ ``` diff --git a/test/fenced_code_without_blank_lines.md b/test/fenced_code_without_blank_lines.md index c1d8abbf..3707def1 100644 --- a/test/fenced_code_without_blank_lines.md +++ b/test/fenced_code_without_blank_lines.md @@ -38,8 +38,8 @@ code text ``` diff --git a/test/first_heading_bad_atx.md b/test/first_heading_bad_atx.md index 1b28b616..27db14f6 100644 --- a/test/first_heading_bad_atx.md +++ b/test/first_heading_bad_atx.md @@ -1,5 +1,5 @@ ## Heading diff --git a/test/first_heading_bad_setext.md b/test/first_heading_bad_setext.md index 55601319..1568873b 100644 --- a/test/first_heading_bad_setext.md +++ b/test/first_heading_bad_setext.md @@ -2,5 +2,5 @@ Heading ------- diff --git a/test/front-matter-alt-title-h1.md b/test/front-matter-alt-title-h1.md index 3f7a84b0..6cf4231f 100644 --- a/test/front-matter-alt-title-h1.md +++ b/test/front-matter-alt-title-h1.md @@ -6,8 +6,8 @@ alternate="Welcome to Jekyll!" Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-alt-title-json.md b/test/front-matter-alt-title-json.md index 7c8bf32c..1cc1a867 100644 --- a/test/front-matter-alt-title-json.md +++ b/test/front-matter-alt-title-json.md @@ -6,7 +6,7 @@ Some plain text here. diff --git a/test/front-matter-alt-title-no-h1.md b/test/front-matter-alt-title-no-h1.md index 2f0d022e..41cd6555 100644 --- a/test/front-matter-alt-title-no-h1.md +++ b/test/front-matter-alt-title-no-h1.md @@ -4,8 +4,8 @@ alternate="Welcome to Jekyll!" Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-alt-title-toml.md b/test/front-matter-alt-title-toml.md index 515ab234..328fc495 100644 --- a/test/front-matter-alt-title-toml.md +++ b/test/front-matter-alt-title-toml.md @@ -6,7 +6,7 @@ alternate = "My document title and heading" Some plain text here. diff --git a/test/front-matter-alternate.md b/test/front-matter-alternate.md index bf7c56c2..5a48bc67 100644 --- a/test/front-matter-alternate.md +++ b/test/front-matter-alternate.md @@ -6,7 +6,7 @@ Text {MD041} Text {MD009} diff --git a/test/front-matter-embedded.md b/test/front-matter-embedded.md index 524a7560..d94952e0 100644 --- a/test/front-matter-embedded.md +++ b/test/front-matter-embedded.md @@ -9,5 +9,5 @@ title: embedded Text text text diff --git a/test/front-matter-empty-title-no-h1.md b/test/front-matter-empty-title-no-h1.md index f5a5bb1a..a3af862a 100644 --- a/test/front-matter-empty-title-no-h1.md +++ b/test/front-matter-empty-title-no-h1.md @@ -7,8 +7,8 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041} diff --git a/test/front-matter-no-title-h1.md b/test/front-matter-no-title-h1.md index a744f44b..c12e36e7 100644 --- a/test/front-matter-no-title-h1.md +++ b/test/front-matter-no-title-h1.md @@ -9,5 +9,5 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-no-title-no-h1.md b/test/front-matter-no-title-no-h1.md index 349c13d3..6784dba0 100644 --- a/test/front-matter-no-title-no-h1.md +++ b/test/front-matter-no-title-no-h1.md @@ -7,5 +7,5 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041} diff --git a/test/front-matter-title-h1.md b/test/front-matter-title-h1.md index 2c90b60f..bbffd638 100644 --- a/test/front-matter-title-h1.md +++ b/test/front-matter-title-h1.md @@ -9,5 +9,5 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-title-h2.md b/test/front-matter-title-h2.md index 7d11eac5..52417d8a 100644 --- a/test/front-matter-title-h2.md +++ b/test/front-matter-title-h2.md @@ -9,8 +9,8 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-title-no-h1.md b/test/front-matter-title-no-h1.md index 7510ed9e..b0457129 100644 --- a/test/front-matter-title-no-h1.md +++ b/test/front-matter-title-no-h1.md @@ -7,5 +7,5 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/front-matter-title-spaces.md b/test/front-matter-title-spaces.md index dd944c91..c1f608dd 100644 --- a/test/front-matter-title-spaces.md +++ b/test/front-matter-title-spaces.md @@ -8,5 +8,5 @@ categories: jekyll update Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). diff --git a/test/github-footnote-syntax.md b/test/github-footnote-syntax.md index 304a66ad..dc561676 100644 --- a/test/github-footnote-syntax.md +++ b/test/github-footnote-syntax.md @@ -16,5 +16,5 @@ You can also use words, to fit your writing style more closely[^note]. This footnote also has been made with a different syntax using 4 spaces for new lines. diff --git a/test/hard-line-breaks.md b/test/hard-line-breaks.md index b5772d2f..2aafda6f 100644 --- a/test/hard-line-breaks.md +++ b/test/hard-line-breaks.md @@ -88,7 +88,7 @@ text text {MD009:71} diff --git a/test/heading-duplicate-content-siblings-only.md b/test/heading-duplicate-content-siblings-only.md index e9ce81b1..2c3c2f19 100644 --- a/test/heading-duplicate-content-siblings-only.md +++ b/test/heading-duplicate-content-siblings-only.md @@ -96,8 +96,8 @@ BB {MD024:94} diff --git a/test/heading_duplicate_content_different_nesting.md b/test/heading_duplicate_content_different_nesting.md index 256d1665..d7d4a64f 100644 --- a/test/heading_duplicate_content_different_nesting.md +++ b/test/heading_duplicate_content_different_nesting.md @@ -11,7 +11,7 @@ ### Bug fixes diff --git a/test/heading_mutliple_h1_no_toplevel.md b/test/heading_mutliple_h1_no_toplevel.md index d42b3ddf..05ffb730 100644 --- a/test/heading_mutliple_h1_no_toplevel.md +++ b/test/heading_mutliple_h1_no_toplevel.md @@ -5,5 +5,5 @@ Some introductory text # Heading 2 diff --git a/test/heading_trailing_punctuation_customized.md b/test/heading_trailing_punctuation_customized.md index a7226373..193df106 100644 --- a/test/heading_trailing_punctuation_customized.md +++ b/test/heading_trailing_punctuation_customized.md @@ -16,7 +16,7 @@ The rule has been customized to allow exclamation point while disallowing everything else. diff --git a/test/heading_trailing_punctuation_empty.md b/test/heading_trailing_punctuation_empty.md index 0d49a7c3..55cac150 100644 --- a/test/heading_trailing_punctuation_empty.md +++ b/test/heading_trailing_punctuation_empty.md @@ -13,7 +13,7 @@ ## Heading ? diff --git a/test/headings_good_setext_with_atx.md b/test/headings_good_setext_with_atx.md index 37f794ed..92e1380f 100644 --- a/test/headings_good_setext_with_atx.md +++ b/test/headings_good_setext_with_atx.md @@ -11,7 +11,7 @@ Heading 2 #### Heading 4 {MD003} #### diff --git a/test/headings_good_setext_with_atx_closed.md b/test/headings_good_setext_with_atx_closed.md index 4edb7911..2595b730 100644 --- a/test/headings_good_setext_with_atx_closed.md +++ b/test/headings_good_setext_with_atx_closed.md @@ -11,7 +11,7 @@ Heading 2 #### Heading 4 {MD003} diff --git a/test/headings_with_spaces_at_the_beginning.md b/test/headings_with_spaces_at_the_beginning.md index ed3be967..f3e28ee9 100644 --- a/test/headings_with_spaces_at_the_beginning.md +++ b/test/headings_with_spaces_at_the_beginning.md @@ -20,6 +20,6 @@ Some text # Test {MD022} {MD023} Also valid heading for CommonMark diff --git a/test/hr_style_dashes.md b/test/hr_style_dashes.md index 2d705345..69e92d10 100644 --- a/test/hr_style_dashes.md +++ b/test/hr_style_dashes.md @@ -24,7 +24,7 @@ _____ {MD035:15} {MD035:17} {MD035:19} {MD035:21} diff --git a/test/hr_style_long.md b/test/hr_style_long.md index 3f4aa972..c0bf9ade 100644 --- a/test/hr_style_long.md +++ b/test/hr_style_long.md @@ -24,7 +24,7 @@ _____ {MD035:17} {MD035:21} diff --git a/test/hr_style_stars.md b/test/hr_style_stars.md index af154256..1f0344c3 100644 --- a/test/hr_style_stars.md +++ b/test/hr_style_stars.md @@ -23,7 +23,7 @@ _____ {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19} diff --git a/test/html-tags.md b/test/html-tags.md index 5095061f..50ce36ca 100644 --- a/test/html-tags.md +++ b/test/html-tags.md @@ -125,11 +125,11 @@ Text Text text. diff --git a/test/hugo-quickstart-example-blank.md b/test/hugo-quickstart-example-blank.md index e7e95a18..c0c3945e 100644 --- a/test/hugo-quickstart-example-blank.md +++ b/test/hugo-quickstart-example-blank.md @@ -8,7 +8,7 @@ title = "Good to Great Book Review" # Heading 1 diff --git a/test/hugo-quickstart-example-clean.md b/test/hugo-quickstart-example-clean.md index cd35da74..d8104779 100644 --- a/test/hugo-quickstart-example-clean.md +++ b/test/hugo-quickstart-example-clean.md @@ -7,7 +7,7 @@ title = "Good to Great Book Review" # Heading 1 diff --git a/test/incorrect_bullet_style_asterisk.md b/test/incorrect_bullet_style_asterisk.md index cb345f78..89caf2b9 100644 --- a/test/incorrect_bullet_style_asterisk.md +++ b/test/incorrect_bullet_style_asterisk.md @@ -5,7 +5,7 @@ + Item {MD004} diff --git a/test/incorrect_bullet_style_dash.md b/test/incorrect_bullet_style_dash.md index 829c1446..684384d0 100644 --- a/test/incorrect_bullet_style_dash.md +++ b/test/incorrect_bullet_style_dash.md @@ -5,7 +5,7 @@ + Item {MD004} diff --git a/test/incorrect_bullet_style_plus.md b/test/incorrect_bullet_style_plus.md index 1736df0b..4556f48f 100644 --- a/test/incorrect_bullet_style_plus.md +++ b/test/incorrect_bullet_style_plus.md @@ -5,7 +5,7 @@ + Item diff --git a/test/incorrect_heading_atx.md b/test/incorrect_heading_atx.md index ea51ed04..9e386e8f 100644 --- a/test/incorrect_heading_atx.md +++ b/test/incorrect_heading_atx.md @@ -6,7 +6,7 @@ Heading 3 {MD003} ----------------- diff --git a/test/incorrect_heading_atx_closed.md b/test/incorrect_heading_atx_closed.md index bbf0b258..9d1f9399 100644 --- a/test/incorrect_heading_atx_closed.md +++ b/test/incorrect_heading_atx_closed.md @@ -6,7 +6,7 @@ Heading 3 {MD003} ----------------- diff --git a/test/incorrect_heading_setext.md b/test/incorrect_heading_setext.md index eff5bad1..fcc7b2a7 100644 --- a/test/incorrect_heading_setext.md +++ b/test/incorrect_heading_setext.md @@ -6,7 +6,7 @@ Heading 3 --------- diff --git a/test/inline-configure-file-invalid.md b/test/inline-configure-file-invalid.md index af7d0ce6..380e5fbc 100644 --- a/test/inline-configure-file-invalid.md +++ b/test/inline-configure-file-invalid.md @@ -2,4 +2,4 @@ Not normally too long of a line, but it would have been from an inline config. - + diff --git a/test/inline-configure-file-single-line.md b/test/inline-configure-file-single-line.md index 65668a9e..87a4bf56 100644 --- a/test/inline-configure-file-single-line.md +++ b/test/inline-configure-file-single-line.md @@ -2,4 +2,4 @@ Not normally too long of a line, but it is here from an inline config. {MD013} - + {MD013} diff --git a/test/inline_html-allowed_elements.md b/test/inline_html-allowed_elements.md index 23228c78..dc2d1dfe 100644 --- a/test/inline_html-allowed_elements.md +++ b/test/inline_html-allowed_elements.md @@ -55,7 +55,7 @@ This is not allowed.

diff --git a/test/list-indentation-start-indented-indent.md b/test/list-indentation-start-indented-indent.md index cc818f9c..d00e9814 100644 --- a/test/list-indentation-start-indented-indent.md +++ b/test/list-indentation-start-indented-indent.md @@ -39,8 +39,8 @@ * item 3 {MD007} diff --git a/test/lists-and-headings.md b/test/lists-and-headings.md index 64c676a6..bf60e79c 100644 --- a/test/lists-and-headings.md +++ b/test/lists-and-headings.md @@ -20,5 +20,5 @@ Heading 3 * list diff --git a/test/lists-with-fenced-code-tight.md b/test/lists-with-fenced-code-tight.md index 2e5c9eaf..80e3535f 100644 --- a/test/lists-with-fenced-code-tight.md +++ b/test/lists-with-fenced-code-tight.md @@ -59,7 +59,7 @@ Text 1. Item diff --git a/test/lists-with-nesting.md b/test/lists-with-nesting.md index 81929514..5e1f0967 100644 --- a/test/lists-with-nesting.md +++ b/test/lists-with-nesting.md @@ -99,5 +99,5 @@ * 3. Item {MD004} {MD006} {MD007} diff --git a/test/lists_without_blank_lines.md b/test/lists_without_blank_lines.md index bbcd68b4..f6b9daa9 100644 --- a/test/lists_without_blank_lines.md +++ b/test/lists_without_blank_lines.md @@ -75,9 +75,9 @@ code text * list (on last line without newline) {MD047} \ No newline at end of file diff --git a/test/long-heading-exceptions.md b/test/long-heading-exceptions.md index fc3e1b7d..aa7452f0 100644 --- a/test/long-heading-exceptions.md +++ b/test/long-heading-exceptions.md @@ -21,7 +21,7 @@ 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} diff --git a/test/long-lines-short-code.md b/test/long-lines-short-code.md index e125a0f5..6fde7599 100644 --- a/test/long-lines-short-code.md +++ b/test/long-lines-short-code.md @@ -25,8 +25,8 @@ Code code code code code code code code {MD013} ``` diff --git a/test/long-lines-short-headings.md b/test/long-lines-short-headings.md index 3738456f..d84469ca 100644 --- a/test/long-lines-short-headings.md +++ b/test/long-lines-short-headings.md @@ -20,8 +20,8 @@ Long heading of text text text text text text {MD013} Text diff --git a/test/long-lines-stern.md b/test/long-lines-stern.md index 40ebc4d7..c489ff84 100644 --- a/test/long-lines-stern.md +++ b/test/long-lines-stern.md @@ -56,7 +56,7 @@ ThisTooLongCodeIsOkay. {MD013:42} diff --git a/test/long_lines_code.md b/test/long_lines_code.md index 64f1df75..370a9199 100644 --- a/test/long_lines_code.md +++ b/test/long_lines_code.md @@ -47,7 +47,7 @@ Another line. {: rules="groups"} diff --git a/test/md040-allowed_languages.md b/test/md040-allowed_languages.md index 09d3e4c5..5fbe3d24 100644 --- a/test/md040-allowed_languages.md +++ b/test/md040-allowed_languages.md @@ -63,7 +63,7 @@ body { ``` diff --git a/test/no-multiple-blanks-maximum.md b/test/no-multiple-blanks-maximum.md index 155af314..f128aaa0 100644 --- a/test/no-multiple-blanks-maximum.md +++ b/test/no-multiple-blanks-maximum.md @@ -46,7 +46,7 @@ Text Text diff --git a/test/no-tabs-edge-case-MD010.md b/test/no-tabs-edge-case-MD010.md index fdd14fbf..516a68c1 100644 --- a/test/no-tabs-edge-case-MD010.md +++ b/test/no-tabs-edge-case-MD010.md @@ -3,9 +3,9 @@ text and text 2 {MD010} texts with trailing spaces{MD010} diff --git a/test/ordered-list-item-prefix-one.md b/test/ordered-list-item-prefix-one.md index ac374e26..b0a4eb19 100644 --- a/test/ordered-list-item-prefix-one.md +++ b/test/ordered-list-item-prefix-one.md @@ -74,7 +74,7 @@ text 3. Item {MD029} diff --git a/test/ordered-list-item-prefix-ordered.md b/test/ordered-list-item-prefix-ordered.md index 5ec47f03..8d54f85c 100644 --- a/test/ordered-list-item-prefix-ordered.md +++ b/test/ordered-list-item-prefix-ordered.md @@ -74,7 +74,7 @@ text 3. Item {MD029} diff --git a/test/ordered-list-item-prefix-zero-alternate.md b/test/ordered-list-item-prefix-zero-alternate.md index 9f875f6b..7895cce5 100644 --- a/test/ordered-list-item-prefix-zero-alternate.md +++ b/test/ordered-list-item-prefix-zero-alternate.md @@ -19,7 +19,7 @@ text 3. Item {MD029} diff --git a/test/ordered-list-item-prefix-zero.md b/test/ordered-list-item-prefix-zero.md index 22205a83..9e3dba9a 100644 --- a/test/ordered-list-item-prefix-zero.md +++ b/test/ordered-list-item-prefix-zero.md @@ -74,7 +74,7 @@ text 3. Item {MD029} diff --git a/test/ordered_list_item_prefix-paren.md b/test/ordered_list_item_prefix-paren.md index 6ad66dc9..b4b95588 100644 --- a/test/ordered_list_item_prefix-paren.md +++ b/test/ordered_list_item_prefix-paren.md @@ -15,7 +15,7 @@ Bad list: 4) Failed! {MD029} diff --git a/test/ordered_list_item_prefix.md b/test/ordered_list_item_prefix.md index eef06a42..1c41f962 100644 --- a/test/ordered_list_item_prefix.md +++ b/test/ordered_list_item_prefix.md @@ -15,7 +15,7 @@ Bad list: 4. Failed! {MD029} diff --git a/test/ordered_list_item_prefix_ordered-paren.md b/test/ordered_list_item_prefix_ordered-paren.md index c684d6f5..4c601d79 100644 --- a/test/ordered_list_item_prefix_ordered-paren.md +++ b/test/ordered_list_item_prefix_ordered-paren.md @@ -15,7 +15,7 @@ Bad list: 1) Failed! {MD029} diff --git a/test/ordered_list_item_prefix_ordered.md b/test/ordered_list_item_prefix_ordered.md index 5bb595bc..23e535de 100644 --- a/test/ordered_list_item_prefix_ordered.md +++ b/test/ordered_list_item_prefix_ordered.md @@ -15,7 +15,7 @@ Bad list: 1. Failed! {MD029} diff --git a/test/proper-names-alternate.md b/test/proper-names-alternate.md index 02ffa0e1..645f1c14 100644 --- a/test/proper-names-alternate.md +++ b/test/proper-names-alternate.md @@ -33,7 +33,7 @@ node.JS {MD044} example.net {MD044} diff --git a/test/required-headings-one-or-more.md b/test/required-headings-one-or-more.md index 67c89647..26e60a83 100644 --- a/test/required-headings-one-or-more.md +++ b/test/required-headings-one-or-more.md @@ -15,7 +15,7 @@ {MD043:30} ␊ `, } @@ -377,9 +377,9 @@ Generated by [AVA](https://avajs.dev). 12. Twelve␊ ␊ ␊ `, } @@ -644,7 +644,7 @@ Generated by [AVA](https://avajs.dev). {MD012:7} {MD013:8} {MD013:10}␊ ␊ ␊ @@ -1692,9 +1692,9 @@ Generated by [AVA](https://avajs.dev). {MD031:3} {MD035:11} {MD040:21}␊ ␊ ␊ `, } @@ -2526,18 +2526,18 @@ Generated by [AVA](https://avajs.dev). Inconsistent __double__ text __interleaved__ text __double__ __interleaved__ strong emphasis. {MD050}␊ ␊ ␊ ␊ Missing newline character {MD043} {MD047}␊ @@ -2639,13 +2639,13 @@ Generated by [AVA](https://avajs.dev). ## Another one {MD025}␊ ␊ ␊ @@ -3049,8 +3049,8 @@ Generated by [AVA](https://avajs.dev). ## Heading 10 {MD003} \\#␊ ␊ ␊ `, } @@ -3126,8 +3126,8 @@ Generated by [AVA](https://avajs.dev). ## Heading 3 {MD019}␊ ␊ ␊ `, } @@ -4243,9 +4243,9 @@ Generated by [AVA](https://avajs.dev). ## Fig␊ ␊ ␊ `, } @@ -7058,16 +7058,16 @@ Generated by [AVA](https://avajs.dev). {MD053:100}␊ ␊ ␊ @@ -7745,7 +7745,7 @@ Generated by [AVA](https://avajs.dev). * Item {MD006} {MD007}␊ ␊ ␊ `, } @@ -8140,13 +8140,13 @@ Generated by [AVA](https://avajs.dev). \`\`\`␊ ␊ ␊ `, } @@ -8228,7 +8228,7 @@ Generated by [AVA](https://avajs.dev). Line with hard tab. {MD010}␊ ␊ ␊ @@ -8750,7 +8750,7 @@ Generated by [AVA](https://avajs.dev). Text text text text text text text text text text text text text text text text text text. {MD013}␊ ␊ ␊ @@ -9492,7 +9492,7 @@ Generated by [AVA](https://avajs.dev). \`\`\`␊ ␊ ␊ @@ -9739,7 +9739,7 @@ Generated by [AVA](https://avajs.dev). Final text is here␊ ␊ ␊ @@ -9791,7 +9791,7 @@ Generated by [AVA](https://avajs.dev). with an empty indented line.␊ ␊ ␊ @@ -9854,7 +9854,7 @@ Generated by [AVA](https://avajs.dev). ~~~␊ ␊ ␊ @@ -9917,7 +9917,7 @@ Generated by [AVA](https://avajs.dev). ~~~␊ ␊ ␊ @@ -10096,8 +10096,8 @@ Generated by [AVA](https://avajs.dev). texts with trailing spaces {MD010} ␊ ␊ ␊ `, } @@ -10788,8 +10788,8 @@ Generated by [AVA](https://avajs.dev). apple_banana_cherry, apple_banana_, _banana_cherry␊ ␊ ␊ @@ -10854,8 +10854,8 @@ Generated by [AVA](https://avajs.dev). apple_banana_cherry, apple_banana_, _banana_cherry␊ ␊ ␊ @@ -11350,7 +11350,7 @@ Generated by [AVA](https://avajs.dev). \`\`\`␊ ␊ ␊ @@ -12252,8 +12252,8 @@ Generated by [AVA](https://avajs.dev). text␊ ␊ ␊ ␊ \`\`\`␊ @@ -12271,7 +12271,7 @@ Generated by [AVA](https://avajs.dev). fixed: `## Heading␊ ␊ ␊ `, } @@ -12286,7 +12286,7 @@ Generated by [AVA](https://avajs.dev). -------␊ ␊ ␊ `, } @@ -12504,8 +12504,8 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ @@ -12526,7 +12526,7 @@ Generated by [AVA](https://avajs.dev). Some plain text here.␊ ␊ ␊ @@ -12545,8 +12545,8 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ @@ -12567,7 +12567,7 @@ Generated by [AVA](https://avajs.dev). Some plain text here.␊ ␊ ␊ @@ -12622,7 +12622,7 @@ Generated by [AVA](https://avajs.dev). Text {MD009}␊ ␊ ␊ @@ -12685,7 +12685,7 @@ Generated by [AVA](https://avajs.dev). Text text text␊ ␊ ␊ `, } @@ -12720,8 +12720,8 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ ␊ @@ -12785,7 +12785,7 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } @@ -12820,7 +12820,7 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}␊ ␊ ␊ `, } @@ -12857,7 +12857,7 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } @@ -12879,10 +12879,10 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } @@ -12932,7 +12932,7 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } @@ -12983,7 +12983,7 @@ Generated by [AVA](https://avajs.dev). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).␊ ␊ ␊ `, } @@ -13382,7 +13382,7 @@ Generated by [AVA](https://avajs.dev). This footnote also has been made with a different syntax using 4 spaces for new lines.␊ ␊ ␊ `, } @@ -13870,7 +13870,7 @@ Generated by [AVA](https://avajs.dev). {MD009:71}␊ ␊ ␊ @@ -14192,8 +14192,8 @@ Generated by [AVA](https://avajs.dev). {MD024:94}␊ ␊ ␊ @@ -14268,7 +14268,7 @@ Generated by [AVA](https://avajs.dev). ### Bug fixes␊ ␊ ␊ @@ -14352,7 +14352,7 @@ Generated by [AVA](https://avajs.dev). # Heading 2␊ ␊ ␊ `, } @@ -14766,7 +14766,7 @@ Generated by [AVA](https://avajs.dev). everything else.␊ ␊ ␊ @@ -14794,7 +14794,7 @@ Generated by [AVA](https://avajs.dev). ## Heading ?␊ ␊ ␊ @@ -15334,7 +15334,7 @@ Generated by [AVA](https://avajs.dev). #### Heading 4 {MD003} ####␊ ␊ ␊ @@ -15389,7 +15389,7 @@ Generated by [AVA](https://avajs.dev). #### Heading 4 {MD003}␊ ␊ ␊ @@ -15840,8 +15840,8 @@ Generated by [AVA](https://avajs.dev). # Test {MD022} {MD023} Also valid heading for CommonMark␊ ␊ ␊ `, } @@ -16876,7 +16876,7 @@ Generated by [AVA](https://avajs.dev). {MD035:15} {MD035:17} {MD035:19} {MD035:21}␊ ␊ ␊ @@ -17170,7 +17170,7 @@ Generated by [AVA](https://avajs.dev). {MD035:17} {MD035:21}␊ ␊ ␊ @@ -17313,7 +17313,7 @@ Generated by [AVA](https://avajs.dev). {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}␊ ␊ ␊ @@ -18345,13 +18345,13 @@ Generated by [AVA](https://avajs.dev). Text text.␊ ␊ ␊ `, } @@ -18372,7 +18372,7 @@ Generated by [AVA](https://avajs.dev). # Heading 1␊ ␊ ␊ @@ -18394,7 +18394,7 @@ Generated by [AVA](https://avajs.dev). # Heading 1␊ ␊ ␊ @@ -19061,7 +19061,7 @@ Generated by [AVA](https://avajs.dev). * Item {MD004}␊ ␊ ␊ @@ -19122,7 +19122,7 @@ Generated by [AVA](https://avajs.dev). - Item {MD004}␊ ␊ ␊ @@ -19183,7 +19183,7 @@ Generated by [AVA](https://avajs.dev). + Item␊ ␊ ␊ @@ -19233,7 +19233,7 @@ Generated by [AVA](https://avajs.dev). -----------------␊ ␊ ␊ @@ -19283,7 +19283,7 @@ Generated by [AVA](https://avajs.dev). -----------------␊ ␊ ␊ @@ -19333,7 +19333,7 @@ Generated by [AVA](https://avajs.dev). ---------␊ ␊ ␊ @@ -20017,7 +20017,7 @@ Generated by [AVA](https://avajs.dev). ␊ Not normally too long of a line, but it would have been from an inline config.␊ ␊ - ␊ + ␊ `, } @@ -20181,12 +20181,28 @@ Generated by [AVA](https://avajs.dev). '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}␊ `, } @@ -22605,7 +22621,7 @@ Generated by [AVA](https://avajs.dev).

␊ ␊ ␊ `, } @@ -25709,8 +25725,8 @@ Generated by [AVA](https://avajs.dev). * item 3 {MD007}␊ ␊ ␊ `, } @@ -27457,7 +27473,7 @@ Generated by [AVA](https://avajs.dev). * list␊ ␊ ␊ `, } @@ -29023,7 +29039,7 @@ Generated by [AVA](https://avajs.dev). 1. Item␊ ␊ ␊ @@ -29768,7 +29784,7 @@ Generated by [AVA](https://avajs.dev). - 3. Item {MD004} {MD006} {MD007}␊ ␊ ␊ `, } @@ -30121,9 +30137,9 @@ Generated by [AVA](https://avajs.dev). text␊ ␊ ␊ ␊ * list (on last line without newline) {MD047}␊ @@ -30208,7 +30224,7 @@ Generated by [AVA](https://avajs.dev). 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}␊ ␊ ␊ @@ -30387,10 +30403,10 @@ Generated by [AVA](https://avajs.dev). \`\`\`␊ ␊ ␊ `, } @@ -30488,8 +30504,8 @@ Generated by [AVA](https://avajs.dev). Text␊ ␊ ␊ @@ -30705,7 +30721,7 @@ Generated by [AVA](https://avajs.dev). {MD013:42}␊ ␊ ␊ @@ -31685,7 +31701,7 @@ Generated by [AVA](https://avajs.dev). {: rules="groups"}␊ ␊ ␊ `, } @@ -32256,7 +32272,7 @@ Generated by [AVA](https://avajs.dev). \`\`\`␊ ␊ ␊ @@ -33306,7 +33322,7 @@ Generated by [AVA](https://avajs.dev). Text␊ ␊ ␊ @@ -33517,11 +33533,11 @@ Generated by [AVA](https://avajs.dev). texts with trailing spaces{MD010}␊ ␊ ␊ `, } @@ -33947,7 +33963,7 @@ Generated by [AVA](https://avajs.dev). 3. Item {MD029}␊ ␊ ␊ @@ -34425,7 +34441,7 @@ Generated by [AVA](https://avajs.dev). 3. Item {MD029}␊ ␊ ␊ @@ -34585,7 +34601,7 @@ Generated by [AVA](https://avajs.dev). 3. Item {MD029}␊ ␊ ␊ @@ -35011,7 +35027,7 @@ Generated by [AVA](https://avajs.dev). 3. Item {MD029}␊ ␊ ␊ @@ -35090,7 +35106,7 @@ Generated by [AVA](https://avajs.dev). 4) Failed! {MD029}␊ ␊ ␊ @@ -35169,7 +35185,7 @@ Generated by [AVA](https://avajs.dev). 4. Failed! {MD029}␊ ␊ ␊ @@ -35248,7 +35264,7 @@ Generated by [AVA](https://avajs.dev). 1) Failed! {MD029}␊ ␊ ␊ @@ -35327,7 +35343,7 @@ Generated by [AVA](https://avajs.dev). 1. Failed! {MD029}␊ ␊ ␊ @@ -35848,7 +35864,7 @@ Generated by [AVA](https://avajs.dev). example.NET {MD044}␊ ␊ ␊ @@ -39106,7 +39122,7 @@ Generated by [AVA](https://avajs.dev). {MD043:30}␊ ␊ ␊ @@ -44823,7 +44839,7 @@ Generated by [AVA](https://avajs.dev). apple__banana__cherry, apple__banana__, __banana__cherry␊ ␊ ␊ @@ -45605,7 +45621,7 @@ Generated by [AVA](https://avajs.dev). {MD009:50}␊ ␊ ␊ @@ -46231,31 +46247,31 @@ Generated by [AVA](https://avajs.dev). Long line long line long line long line long line long line long line long line long line long line {MD013}␊ ␊ diff --git a/test/strong_style_underscore.md b/test/strong_style_underscore.md index 92a270c5..d5d7e6db 100644 --- a/test/strong_style_underscore.md +++ b/test/strong_style_underscore.md @@ -9,7 +9,7 @@ apple**banana**cherry, apple**banana**, **banana**cherry apple__banana__cherry, apple__banana__, __banana__cherry diff --git a/test/trailing-spaces-in-lists-allowed-strict.md b/test/trailing-spaces-in-lists-allowed-strict.md index 0306f81e..975ce10b 100644 --- a/test/trailing-spaces-in-lists-allowed-strict.md +++ b/test/trailing-spaces-in-lists-allowed-strict.md @@ -52,7 +52,7 @@ {MD009:50} diff --git a/test/wrong-types-in-config-file.md b/test/wrong-types-in-config-file.md index a48f9993..329acc2b 100644 --- a/test/wrong-types-in-config-file.md +++ b/test/wrong-types-in-config-file.md @@ -3,31 +3,31 @@ Long line long line long line long line long line long line long line long line long line long line {MD013}