diff --git a/test/atx_closed_heading_spacing.json b/test/atx_closed_heading_spacing.json index 2f37f5bb..103a42fc 100644 --- a/test/atx_closed_heading_spacing.json +++ b/test/atx_closed_heading_spacing.json @@ -1,4 +1,5 @@ { "default": true, - "MD002": false + "MD002": false, + "MD041": false } diff --git a/test/atx_heading_spacing.json b/test/atx_heading_spacing.json index 2f37f5bb..103a42fc 100644 --- a/test/atx_heading_spacing.json +++ b/test/atx_heading_spacing.json @@ -1,4 +1,5 @@ { "default": true, - "MD002": false + "MD002": false, + "MD041": false } diff --git a/test/blockquote_blank_lines.md b/test/blockquote_blank_lines.md index d21d4383..e46fe5e1 100644 --- a/test/blockquote_blank_lines.md +++ b/test/blockquote_blank_lines.md @@ -1,3 +1,5 @@ +# blockquote_blank_lines + Some text > a quote @@ -26,6 +28,6 @@ Some text Expected errors: -{MD028:5} {MD028:7} {MD028:8} {MD028:10} {MD028:17} -{MD009:10} (trailing space is intentional) -{MD012:8} (multiple blank lines are intentional) +{MD028:7} {MD028:9} {MD028:10} {MD028:12} {MD028:19} +{MD009:12} (trailing space is intentional) +{MD012:10} (multiple blank lines are intentional) diff --git a/test/blockquote_spaces.md b/test/blockquote_spaces.md index 50ce2fed..d775c185 100644 --- a/test/blockquote_spaces.md +++ b/test/blockquote_spaces.md @@ -1,3 +1,5 @@ +# blockquote_spaces + Some text > Hello world diff --git a/test/break-all-the-rules.json b/test/break-all-the-rules.json index 341c6760..09766334 100644 --- a/test/break-all-the-rules.json +++ b/test/break-all-the-rules.json @@ -2,7 +2,6 @@ "default": true, "MD002": true, "MD006": true, - "MD041": true, "MD043": { "headings": [ "## Heading 1 {MD002} {MD041}", diff --git a/test/bulleted_list_2_space_indent.md b/test/bulleted_list_2_space_indent.md index 268c9b05..7a9c47fa 100644 --- a/test/bulleted_list_2_space_indent.md +++ b/test/bulleted_list_2_space_indent.md @@ -1,3 +1,5 @@ +# 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: diff --git a/test/bulleted_list_4_space_indent.md b/test/bulleted_list_4_space_indent.md index 8079d913..2480f23e 100644 --- a/test/bulleted_list_4_space_indent.md +++ b/test/bulleted_list_4_space_indent.md @@ -1,3 +1,5 @@ +# bulleted_list_4_space_indent + * Test X * Test Y {MD007} * Test Z {MD007} diff --git a/test/code_block_consistency.md b/test/code_block_consistency.md index da1dc153..1f28a193 100644 --- a/test/code_block_consistency.md +++ b/test/code_block_consistency.md @@ -1,3 +1,5 @@ +# code_block_consistency + This is text. This is a @@ -6,6 +8,6 @@ This is text. And here is more text ```text -and here is a different {MD046:8} +and here is a different {MD046:10} code block ``` diff --git a/test/code_block_fenced.md b/test/code_block_fenced.md index 047264c5..f29e10d2 100644 --- a/test/code_block_fenced.md +++ b/test/code_block_fenced.md @@ -1,3 +1,5 @@ +# code_block_fenced + This is text. This is a {MD046} @@ -12,7 +14,7 @@ This is a code block that won't trigger. ```text This is code -with a line with trailing spaces. {MD009:14} +with a line with trailing spaces. {MD009:16} ``` But we'll do another: diff --git a/test/code_block_indented.md b/test/code_block_indented.md index 5576dcd8..7de4182f 100644 --- a/test/code_block_indented.md +++ b/test/code_block_indented.md @@ -1,3 +1,5 @@ +# code_block_indented + This is text. This is a @@ -6,7 +8,7 @@ This is text. And here is more text ```text -This is {MD046:8} also a code block. +This is {MD046:10} also a code block. ``` But we'll do another: diff --git a/test/code_fence_style_backtick.md b/test/code_fence_style_backtick.md index 0bf02b0c..820d6954 100644 --- a/test/code_fence_style_backtick.md +++ b/test/code_fence_style_backtick.md @@ -1,9 +1,11 @@ +# code_fence_style_backtick + ```text This is a code block ``` ~~~text -This is {MD048:5} a code block +This is {MD048:7} a code block ~~~ ```text @@ -14,6 +16,6 @@ This is fine ~~~text ``` -This is not {MD048:15} +This is not {MD048:17} ``` ~~~ diff --git a/test/code_fence_style_tilde.md b/test/code_fence_style_tilde.md index 5e44d02e..e26866a6 100644 --- a/test/code_fence_style_tilde.md +++ b/test/code_fence_style_tilde.md @@ -1,5 +1,7 @@ +# code_fence_style_tilde + ```text -This is {MD048:1} a code block +This is {MD048:3} a code block ``` ~~~text @@ -8,7 +10,7 @@ This is a code block ```text ~~~ -This is not fine {MD048:9} +This is not fine {MD048:11} ~~~ ``` diff --git a/test/consecutive_blank_lines.md b/test/consecutive_blank_lines.md index 95fde905..3468c6cb 100644 --- a/test/consecutive_blank_lines.md +++ b/test/consecutive_blank_lines.md @@ -1,7 +1,9 @@ +# consecutive_blank_lines + Some text -Some text {MD012:3} +Some text {MD012:5} This is a code block diff --git a/test/consistent_bullet_styles_asterisk.md b/test/consistent_bullet_styles_asterisk.md index ced4b371..a06162cd 100644 --- a/test/consistent_bullet_styles_asterisk.md +++ b/test/consistent_bullet_styles_asterisk.md @@ -1,3 +1,5 @@ +# consistent_bullet_styles_asterisk + * Item * Item * Item diff --git a/test/consistent_bullet_styles_dash.md b/test/consistent_bullet_styles_dash.md index 2d89e193..a41b13e4 100644 --- a/test/consistent_bullet_styles_dash.md +++ b/test/consistent_bullet_styles_dash.md @@ -1,3 +1,5 @@ +# consistent_bullet_styles_dash + - Item - Item - Item diff --git a/test/consistent_bullet_styles_plus.md b/test/consistent_bullet_styles_plus.md index 8f4f5208..6e73c106 100644 --- a/test/consistent_bullet_styles_plus.md +++ b/test/consistent_bullet_styles_plus.md @@ -1,3 +1,5 @@ +# consistent_bullet_styles_plus + + Item + Item + Item diff --git a/test/detailed-results-MD001-MD010.json b/test/detailed-results-MD001-MD010.json index 0fd42109..9f6ee9b4 100644 --- a/test/detailed-results-MD001-MD010.json +++ b/test/detailed-results-MD001-MD010.json @@ -1,5 +1,6 @@ { "default": true, "MD002": true, - "MD006": true + "MD006": true, + "MD041": false } diff --git a/test/byte-order-marker-utf8.json b/test/detailed-results-MD031-MD040.json similarity index 57% rename from test/byte-order-marker-utf8.json rename to test/detailed-results-MD031-MD040.json index 054e8566..7935d0c1 100644 --- a/test/byte-order-marker-utf8.json +++ b/test/detailed-results-MD031-MD040.json @@ -1,4 +1,4 @@ { "default": true, - "MD041": true + "MD041": false } diff --git a/test/detailed-results-MD041-MD050.json b/test/detailed-results-MD041-MD050.json index 8e917435..f5a8bcc3 100644 --- a/test/detailed-results-MD041-MD050.json +++ b/test/detailed-results-MD041-MD050.json @@ -1,6 +1,5 @@ { "default": true, - "MD041": true, "MD043": { "headings": [ "# Heading" diff --git a/test/detailed-results-front-matter.json b/test/detailed-results-front-matter.json index 636b736f..7fa6a470 100644 --- a/test/detailed-results-front-matter.json +++ b/test/detailed-results-front-matter.json @@ -2,6 +2,5 @@ "default": true, "MD009": { "br_spaces": 0 - }, - "MD041": true + } } diff --git a/test/emphasis_instead_of_headings.md b/test/emphasis_instead_of_headings.md index 2af778f5..72b8148d 100644 --- a/test/emphasis_instead_of_headings.md +++ b/test/emphasis_instead_of_headings.md @@ -1,3 +1,5 @@ +# emphasis_instead_of_headings + **Section 1: the first section {MD036}** Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor diff --git a/test/fenced_code_blocks.md b/test/fenced_code_blocks.md index c77583b0..e8a87671 100644 --- a/test/fenced_code_blocks.md +++ b/test/fenced_code_blocks.md @@ -1,3 +1,5 @@ +# fenced_code_blocks + This is a GFM-style fenced code block: ``` bash @@ -24,4 +26,4 @@ None of the above should trigger any heading related rules. Code block without a language specifier ``` -{MD040:23} {MD048:13} +{MD040:25} {MD048:15} diff --git a/test/fenced_code_without_blank_lines.json b/test/fenced_code_without_blank_lines.json index 29614326..78d25e72 100644 --- a/test/fenced_code_without_blank_lines.json +++ b/test/fenced_code_without_blank_lines.json @@ -1,4 +1,5 @@ { "default": true, - "MD040": false + "MD040": false, + "MD041": false } diff --git a/test/front-matter-no-crlf.json b/test/first_heading_bad_atx.json similarity index 57% rename from test/front-matter-no-crlf.json rename to test/first_heading_bad_atx.json index 054e8566..7935d0c1 100644 --- a/test/front-matter-no-crlf.json +++ b/test/first_heading_bad_atx.json @@ -1,4 +1,4 @@ { "default": true, - "MD041": true + "MD041": false } diff --git a/test/front-matter-title-json-spaces.json b/test/first_heading_bad_setext.json similarity index 57% rename from test/front-matter-title-json-spaces.json rename to test/first_heading_bad_setext.json index 054e8566..7935d0c1 100644 --- a/test/front-matter-title-json-spaces.json +++ b/test/first_heading_bad_setext.json @@ -1,4 +1,4 @@ { "default": true, - "MD041": true + "MD041": false } diff --git a/test/first_line_top_level_heading_atx.json b/test/first_line_top_level_heading_atx.json deleted file mode 100644 index d6fc777e..00000000 --- a/test/first_line_top_level_heading_atx.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": false, - "MD041": true -} diff --git a/test/first_line_top_level_heading_setext.json b/test/first_line_top_level_heading_setext.json deleted file mode 100644 index d6fc777e..00000000 --- a/test/first_line_top_level_heading_setext.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": false, - "MD041": true -} diff --git a/test/fix_102_extra_nodes_in_link_text.md b/test/fix_102_extra_nodes_in_link_text.md index 07d0bbad..74cc494e 100644 --- a/test/fix_102_extra_nodes_in_link_text.md +++ b/test/fix_102_extra_nodes_in_link_text.md @@ -1,3 +1,5 @@ +# 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) diff --git a/test/front-matter-empty.json b/test/front-matter-embedded.json similarity index 57% rename from test/front-matter-empty.json rename to test/front-matter-embedded.json index 054e8566..7935d0c1 100644 --- a/test/front-matter-empty.json +++ b/test/front-matter-embedded.json @@ -1,4 +1,4 @@ { "default": true, - "MD041": true + "MD041": false } diff --git a/test/front-matter-no-title-h1.json b/test/front-matter-no-title-h1.json index 3c524e19..b077f0e1 100644 --- a/test/front-matter-no-title-h1.json +++ b/test/front-matter-no-title-h1.json @@ -1,5 +1,4 @@ { "default": true, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-no-title-no-h1.json b/test/front-matter-no-title-no-h1.json index 3c524e19..b077f0e1 100644 --- a/test/front-matter-no-title-no-h1.json +++ b/test/front-matter-no-title-no-h1.json @@ -1,5 +1,4 @@ { "default": true, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-title-h1.json b/test/front-matter-title-h1.json index 3c524e19..b077f0e1 100644 --- a/test/front-matter-title-h1.json +++ b/test/front-matter-title-h1.json @@ -1,5 +1,4 @@ { "default": true, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-title-h2.json b/test/front-matter-title-h2.json index 54223302..5fbf1fa3 100644 --- a/test/front-matter-title-h2.json +++ b/test/front-matter-title-h2.json @@ -3,6 +3,5 @@ "MD002": { "level": 2 }, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-title-json.json b/test/front-matter-title-json.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter-title-json.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/front-matter-title-no-h1.json b/test/front-matter-title-no-h1.json index 3c524e19..b077f0e1 100644 --- a/test/front-matter-title-no-h1.json +++ b/test/front-matter-title-no-h1.json @@ -1,5 +1,4 @@ { "default": true, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-title-pandoc-spaces.json b/test/front-matter-title-pandoc-spaces.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter-title-pandoc-spaces.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/front-matter-title-pandoc.json b/test/front-matter-title-pandoc.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter-title-pandoc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/front-matter-title-spaces.json b/test/front-matter-title-spaces.json index 3c524e19..b077f0e1 100644 --- a/test/front-matter-title-spaces.json +++ b/test/front-matter-title-spaces.json @@ -1,5 +1,4 @@ { "default": true, - "MD013": false, - "MD041": true + "MD013": false } diff --git a/test/front-matter-title-toml-spaces.json b/test/front-matter-title-toml-spaces.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter-title-toml-spaces.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/front-matter-title-toml.json b/test/front-matter-title-toml.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter-title-toml.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/front-matter.json b/test/front-matter.json deleted file mode 100644 index 054e8566..00000000 --- a/test/front-matter.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/hard-line-breaks.json b/test/hard-line-breaks.json index d965ba0b..1ffb8a6f 100644 --- a/test/hard-line-breaks.json +++ b/test/hard-line-breaks.json @@ -1,6 +1,6 @@ { - "default": true, - "MD009": { - "strict": true - } + "default": true, + "MD009": { + "strict": true } +} diff --git a/test/heading_mutliple_h1_no_toplevel.json b/test/heading_mutliple_h1_no_toplevel.json new file mode 100644 index 00000000..7935d0c1 --- /dev/null +++ b/test/heading_mutliple_h1_no_toplevel.json @@ -0,0 +1,4 @@ +{ + "default": true, + "MD041": false +} diff --git a/test/headings_with_spaces_at_the_beginning.json b/test/headings_with_spaces_at_the_beginning.json index 8ad79fd3..cb702d63 100644 --- a/test/headings_with_spaces_at_the_beginning.json +++ b/test/headings_with_spaces_at_the_beginning.json @@ -1,4 +1,5 @@ { "default": true, - "MD003": false + "MD003": false, + "MD041": false } diff --git a/test/hr_style_dashes.md b/test/hr_style_dashes.md index 9a692250..3d90b12b 100644 --- a/test/hr_style_dashes.md +++ b/test/hr_style_dashes.md @@ -1,3 +1,5 @@ +# hr_style_dashes + *** * * * @@ -18,5 +20,5 @@ _____ *** -{MD035:1} {MD035:3} {MD035:5} {MD035:9} {MD035:11} {MD035:13} {MD035:15} -{MD035:17} {MD035:19} +{MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13} {MD035:15} {MD035:17} +{MD035:19} {MD035:21} diff --git a/test/hr_style_inconsistent.md b/test/hr_style_inconsistent.md index df3cc726..20d4c745 100644 --- a/test/hr_style_inconsistent.md +++ b/test/hr_style_inconsistent.md @@ -1,3 +1,5 @@ +# hr_style_inconsistent + *** * * * @@ -18,5 +20,5 @@ _____ *** -{MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} -{MD035:17} +{MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} +{MD035:19} diff --git a/test/hr_style_long.md b/test/hr_style_long.md index 0e9b1db2..c5524a04 100644 --- a/test/hr_style_long.md +++ b/test/hr_style_long.md @@ -1,3 +1,5 @@ +# hr_style_long + *** * * * @@ -18,5 +20,5 @@ _____ *** -{MD035:1} {MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} -{MD035:15} {MD035:19} +{MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} +{MD035:17} {MD035:21} diff --git a/test/hr_style_stars.md b/test/hr_style_stars.md index df3cc726..b096afb0 100644 --- a/test/hr_style_stars.md +++ b/test/hr_style_stars.md @@ -1,3 +1,5 @@ +# hr_style_stars + *** * * * @@ -18,5 +20,5 @@ _____ *** -{MD035:3} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} -{MD035:17} +{MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} +{MD035:19} diff --git a/test/hugo-quickstart-example-blank.json b/test/hugo-quickstart-example-blank.json index 24ff05a4..55364c86 100644 --- a/test/hugo-quickstart-example-blank.json +++ b/test/hugo-quickstart-example-blank.json @@ -2,6 +2,5 @@ "default": true, "MD025": { "front_matter_title": "" - }, - "MD041": true + } } diff --git a/test/hugo-quickstart-example-clean.json b/test/hugo-quickstart-example-clean.json index 24ff05a4..55364c86 100644 --- a/test/hugo-quickstart-example-clean.json +++ b/test/hugo-quickstart-example-clean.json @@ -2,6 +2,5 @@ "default": true, "MD025": { "front_matter_title": "" - }, - "MD041": true + } } diff --git a/test/hugo-quickstart-example-json.json b/test/hugo-quickstart-example-json.json deleted file mode 100644 index 054e8566..00000000 --- a/test/hugo-quickstart-example-json.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "default": true, - "MD041": true -} diff --git a/test/inconsistent_bullet_styles_asterisk.md b/test/inconsistent_bullet_styles_asterisk.md index f383ded2..378c7f49 100644 --- a/test/inconsistent_bullet_styles_asterisk.md +++ b/test/inconsistent_bullet_styles_asterisk.md @@ -1,3 +1,5 @@ +# inconsistent_bullet_styles_asterisk + * Item + Item {MD004} - Item {MD004} diff --git a/test/inconsistent_bullet_styles_dash.md b/test/inconsistent_bullet_styles_dash.md index 15c5dfc7..8d243e28 100644 --- a/test/inconsistent_bullet_styles_dash.md +++ b/test/inconsistent_bullet_styles_dash.md @@ -1,3 +1,5 @@ +# inconsistent_bullet_styles_dash + - Item * Item {MD004} + Item {MD004} diff --git a/test/inconsistent_bullet_styles_plus.md b/test/inconsistent_bullet_styles_plus.md index fe4c497f..9a737276 100644 --- a/test/inconsistent_bullet_styles_plus.md +++ b/test/inconsistent_bullet_styles_plus.md @@ -1,3 +1,5 @@ +# inconsistent_bullet_styles_plus + + Item * Item {MD004} - Item {MD004} diff --git a/test/incorrect_bullet_style_asterisk.md b/test/incorrect_bullet_style_asterisk.md index dd6b3f0a..bc5add7b 100644 --- a/test/incorrect_bullet_style_asterisk.md +++ b/test/incorrect_bullet_style_asterisk.md @@ -1,3 +1,5 @@ +# incorrect_bullet_style_asterisk + * Item - Item {MD004} + Item {MD004} diff --git a/test/incorrect_bullet_style_dash.md b/test/incorrect_bullet_style_dash.md index bfbbf91a..8f8eef32 100644 --- a/test/incorrect_bullet_style_dash.md +++ b/test/incorrect_bullet_style_dash.md @@ -1,3 +1,5 @@ +# incorrect_bullet_style_dash + * Item {MD004} - Item + Item {MD004} diff --git a/test/incorrect_bullet_style_plus.md b/test/incorrect_bullet_style_plus.md index 460a299d..2c9a156f 100644 --- a/test/incorrect_bullet_style_plus.md +++ b/test/incorrect_bullet_style_plus.md @@ -1,3 +1,5 @@ +# incorrect_bullet_style_plus + * Item {MD004} - Item {MD004} + Item diff --git a/test/inline_html-allowed_elements.md b/test/inline_html-allowed_elements.md index defaf1e3..d19569c4 100644 --- a/test/inline_html-allowed_elements.md +++ b/test/inline_html-allowed_elements.md @@ -1,3 +1,5 @@ +# inline_html-allowed_elements +