Always refer to rules by name (not number) in test configuration.

This commit is contained in:
Tommy G 2023-07-28 14:33:03 +10:00 committed by GitHub
parent 4d378815ba
commit 07b851b3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
131 changed files with 412 additions and 396 deletions

View file

@ -2162,7 +2162,7 @@ function getEnabledRulesPerLineNumber(ruleList, lines, frontMatterLines, noInlin
var disableNextLine = action === "DISABLE-NEXT-LINE"; var disableNextLine = action === "DISABLE-NEXT-LINE";
if (disableLine || disableNextLine) { if (disableLine || disableNextLine) {
var nextLineNumber = frontMatterLines.length + lineNumber + (disableNextLine ? 1 : 0); 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 // Handle inline comments

View file

@ -481,7 +481,7 @@ function getEnabledRulesPerLineNumber(
applyEnableDisable( applyEnableDisable(
action, action,
parameter, parameter,
enabledRulesPerLineNumber[nextLineNumber] || {} enabledRulesPerLineNumber[nextLineNumber]
); );
} }
} }

View file

@ -3,9 +3,9 @@ text and text 2 {MD010}
texts with trailing spaces {MD010} texts with trailing spaces {MD010}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": false, "no-trailing-spaces": false,
"MD010": { "no-hard-tabs": {
"spaces_per_tab": 4 "spaces_per_tab": 4
}, },
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -30,7 +30,7 @@ Text text {MD010}
12. Twelve 12. Twelve
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": true, "first-heading-h1": true,
"MD006": true, "ul-start-left": true,
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -28,7 +28,7 @@ A (reversed)[link] example. {MD011}
{MD012:7} {MD013:8} {MD013:10} {MD012:7} {MD013:8} {MD013:10}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"heading_line_length": 40 "heading_line_length": 40
} }
} --> } -->

View file

@ -65,7 +65,7 @@ multi-line * emphasis. {MD037}
{MD031:3} {MD035:11} {MD040:21} {MD031:3} {MD035:11} {MD040:21}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false, "first-line-heading": false,
"MD049": false, "emphasis-style": false,
"MD050": false "strong-style": false
} --> } -->

View file

@ -47,18 +47,18 @@ Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. {
Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050} Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false, "line-length": false,
"MD043": { "required-headings": {
"headings": [ "headings": [
"# Heading" "# Heading"
] ]
}, },
"MD044": { "proper-names": {
"names": [ "names": [
"markdownlint" "markdownlint"
] ]
}, },
"MD051": false "link-fragments": false
} --> } -->
Missing newline character {MD043} {MD047} Missing newline character {MD043} {MD047}

View file

@ -3,13 +3,13 @@
## Another one {MD025} ## Another one {MD025}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": { "first-heading-h1": {
"level": 2 "level": 2
}, },
"MD025": { "single-title": {
"level": 2 "level": 2
}, },
"MD041": { "first-line-heading": {
"level": 2 "level": 2
} }
} --> } -->

View file

@ -19,6 +19,6 @@
## Heading 10 {MD003} \# ## Heading 10 {MD003} \#
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": false, "first-heading-h1": false,
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -5,6 +5,6 @@
## Heading 3 {MD019} ## Heading 3 {MD019}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": false, "first-heading-h1": false,
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -24,9 +24,9 @@ Text
## Fig ## Fig
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false, "heading-style": false,
"MD012": false, "no-multiple-blanks": false,
"MD022": { "blanks-around-headings": {
"lines_above": 0, "lines_above": 0,
"lines_below": 2 "lines_below": 2
} }

View file

@ -28,9 +28,9 @@ Text
## Fig ## Fig
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false, "heading-style": false,
"MD012": false, "no-multiple-blanks": false,
"MD022": { "blanks-around-headings": {
"lines_above": 3, "lines_above": 3,
"lines_below": 0 "lines_below": 0
} }

View file

@ -22,5 +22,5 @@ Text
## Fig ## Fig
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false "heading-style": false
} --> } -->

View file

@ -101,16 +101,16 @@ Strong **with** different style {MD050}
{MD053:100} {MD053:100}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": true, "first-heading-h1": true,
"MD006": true, "ul-start-left": true,
"MD043": { "required-headings": {
"headings": [ "headings": [
"## Heading 1 {MD002:1} {MD041:1}", "## Heading 1 {MD002:1} {MD041:1}",
"#### Heading 2 {MD001:3}", "#### Heading 2 {MD001:3}",
"# Broken" "# Broken"
] ]
}, },
"MD044": { "proper-names": {
"names": [ "names": [
"markdownlint" "markdownlint"
] ]

View file

@ -8,7 +8,7 @@ set to 4 space indents for lists:
* Test Z {MD007} * Test Z {MD007}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD007": { "ul-indent": {
"indent": 4 "indent": 4
} }
} --> } -->

View file

@ -59,5 +59,5 @@ Text
* Item {MD006} {MD007} * Item {MD006} {MD007}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD006": true "ul-start-left": true
} --> } -->

View file

@ -50,11 +50,11 @@ if (true) {
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD010": { "no-hard-tabs": {
"ignore_code_languages": [ "ignore_code_languages": [
"js", "js",
"text" "text"
] ]
}, },
"MD046": false "code-block-style": false
} --> } -->

View file

@ -35,7 +35,7 @@ if (true) {
Line with hard tab. {MD010} Line with hard tab. {MD010}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD010": { "no-hard-tabs": {
"code_blocks": false "code_blocks": false
} }
} --> } -->

View file

@ -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} Text text text text text text text text text text text text text text text text text text. {MD013}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"code_blocks": false "code_blocks": false
} }
} --> } -->

View file

@ -14,7 +14,7 @@
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": { "no-trailing-spaces": {
"br_spaces": 2 "br_spaces": 2
} }
} --> } -->

View file

@ -19,7 +19,7 @@ But we'll do another:
Final text is here Final text is here
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD046": { "code-block-style": {
"style": "fenced" "style": "fenced"
} }
} --> } -->

View file

@ -23,7 +23,7 @@ One last one:
with an empty indented line. with an empty indented line.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD046": { "code-block-style": {
"style": "indented" "style": "indented"
} }
} --> } -->

View file

@ -21,7 +21,7 @@ This is not {MD048:17}
~~~ ~~~
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD048": { "code-fence-style": {
"style": "backtick" "style": "backtick"
} }
} --> } -->

View file

@ -21,7 +21,7 @@ This is
~~~ ~~~
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD048": { "code-fence-style": {
"style": "tilde" "style": "tilde"
} }
} --> } -->

View file

@ -3,6 +3,6 @@ text and text 2 {MD010}
texts with trailing spaces {MD010} texts with trailing spaces {MD010}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": false, "no-trailing-spaces": false,
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -9,8 +9,8 @@ apple*banana*cherry, apple*banana*, *banana*cherry
apple_banana_cherry, apple_banana_, _banana_cherry apple_banana_cherry, apple_banana_, _banana_cherry
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD037": false, "no-space-in-emphasis": false,
"MD049": { "emphasis-style": {
"style": "asterisk" "style": "asterisk"
} }
} --> } -->

View file

@ -9,8 +9,8 @@ apple*banana*cherry, apple*banana*, *banana*cherry
apple_banana_cherry, apple_banana_, _banana_cherry apple_banana_cherry, apple_banana_, _banana_cherry
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD037": false, "no-space-in-emphasis": false,
"MD049": { "emphasis-style": {
"style": "underscore" "style": "underscore"
} }
} --> } -->

View file

@ -35,7 +35,7 @@
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"code_blocks": false "code_blocks": false
} }
} --> } -->

View file

@ -38,8 +38,8 @@ code
text text
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD040": false, "fenced-code-language": false,
"MD041": false "first-line-heading": false
} --> } -->
``` ```

View file

@ -1,5 +1,5 @@
## Heading ## Heading
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -2,5 +2,5 @@ Heading
------- -------
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -6,8 +6,8 @@ alternate="Welcome to Jekyll!"
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false, "line-length": false,
"MD025": { "single-title": {
"front_matter_title": "^\\s*alternate=" "front_matter_title": "^\\s*alternate="
} }
} --> } -->

View file

@ -6,7 +6,7 @@
Some plain text here. Some plain text here.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": { "first-line-heading": {
"front_matter_title": "^\\s*\"alternate\"\\s*:" "front_matter_title": "^\\s*\"alternate\"\\s*:"
} }
} --> } -->

View file

@ -4,8 +4,8 @@ alternate="Welcome to Jekyll!"
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false, "line-length": false,
"MD041": { "first-line-heading": {
"front_matter_title": "^\\s*alternate=" "front_matter_title": "^\\s*alternate="
} }
} --> } -->

View file

@ -6,7 +6,7 @@ alternate = "My document title and heading"
Some plain text here. Some plain text here.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": { "first-line-heading": {
"front_matter_title": "^\\s*alternate\\s*=" "front_matter_title": "^\\s*alternate\\s*="
} }
} --> } -->

View file

@ -6,7 +6,7 @@ Text {MD041}
Text {MD009} Text {MD009}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": { "no-trailing-spaces": {
"br_spaces": 0 "br_spaces": 0
} }
} --> } -->

View file

@ -9,5 +9,5 @@ title: embedded
Text text text Text text text
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -7,8 +7,8 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041} Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false, "line-length": false,
"MD041": { "first-line-heading": {
"front_matter_title": "" "front_matter_title": ""
} }
} --> } -->

View file

@ -9,5 +9,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -7,5 +7,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041} Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -9,5 +9,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -9,8 +9,8 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": { "first-heading-h1": {
"level": 2 "level": 2
}, },
"MD013": false "line-length": false
} --> } -->

View file

@ -7,5 +7,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -8,5 +8,5 @@ categories: jekyll update
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -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. This footnote also has been made with a different syntax using 4 spaces for new lines.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false "line-length": false
} --> } -->

View file

@ -88,7 +88,7 @@ text text
{MD009:71} {MD009:71}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": { "no-trailing-spaces": {
"strict": true "strict": true
} }
} --> } -->

View file

@ -96,8 +96,8 @@ BB
{MD024:94} {MD024:94}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false, "heading-style": false,
"MD024": { "no-duplicate-heading": {
"siblings_only": true "siblings_only": true
} }
} --> } -->

View file

@ -11,7 +11,7 @@
### Bug fixes ### Bug fixes
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD024": { "no-duplicate-heading": {
"allow_different_nesting": true "allow_different_nesting": true
} }
} --> } -->

View file

@ -5,5 +5,5 @@ Some introductory text
# Heading 2 # Heading 2
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -16,7 +16,7 @@ The rule has been customized to allow exclamation point while disallowing
everything else. everything else.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD026": { "no-trailing-punctuation": {
"punctuation": ".,;:?]" "punctuation": ".,;:?]"
} }
} --> } -->

View file

@ -13,7 +13,7 @@
## Heading ? ## Heading ?
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD026": { "no-trailing-punctuation": {
"punctuation": "" "punctuation": ""
} }
} --> } -->

View file

@ -11,7 +11,7 @@ Heading 2
#### Heading 4 {MD003} #### #### Heading 4 {MD003} ####
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": { "heading-style": {
"style": "setext_with_atx" "style": "setext_with_atx"
} }
} --> } -->

View file

@ -11,7 +11,7 @@ Heading 2
#### Heading 4 {MD003} #### Heading 4 {MD003}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": { "heading-style": {
"style": "setext_with_atx_closed" "style": "setext_with_atx_closed"
} }
} --> } -->

View file

@ -20,6 +20,6 @@ Some text
# Test {MD022} {MD023} Also valid heading for CommonMark # Test {MD022} {MD023} Also valid heading for CommonMark
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false, "heading-style": false,
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -24,7 +24,7 @@ _____
{MD035:15} {MD035:17} {MD035:19} {MD035:21} {MD035:15} {MD035:17} {MD035:19} {MD035:21}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD035": { "hr-style": {
"style": "---" "style": "---"
} }
} --> } -->

View file

@ -24,7 +24,7 @@ _____
{MD035:17} {MD035:21} {MD035:17} {MD035:21}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD035": { "hr-style": {
"style": "_____" "style": "_____"
} }
} --> } -->

View file

@ -23,7 +23,7 @@ _____
{MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19} {MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD035": { "hr-style": {
"style": "***" "style": "***"
} }
} --> } -->

View file

@ -125,11 +125,11 @@ Text
Text <!-- <commented-out html="tag"> --> text. Text <!-- <commented-out html="tag"> --> text.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD010": false, "no-hard-tabs": false,
"MD033": { "no-inline-html": {
"allowed_elements": [ "allowed_elements": [
"strong" "strong"
] ]
}, },
"MD046": false "code-block-style": false
} --> } -->

View file

@ -8,7 +8,7 @@ title = "Good to Great Book Review"
# Heading 1 # Heading 1
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD025": { "single-title": {
"front_matter_title": "" "front_matter_title": ""
} }
} --> } -->

View file

@ -7,7 +7,7 @@ title = "Good to Great Book Review"
# Heading 1 # Heading 1
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD025": { "single-title": {
"front_matter_title": "" "front_matter_title": ""
} }
} --> } -->

View file

@ -5,7 +5,7 @@
+ Item {MD004} + Item {MD004}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD004": { "ul-style": {
"style": "asterisk" "style": "asterisk"
} }
} --> } -->

View file

@ -5,7 +5,7 @@
+ Item {MD004} + Item {MD004}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD004": { "ul-style": {
"style": "dash" "style": "dash"
} }
} --> } -->

View file

@ -5,7 +5,7 @@
+ Item + Item
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD004": { "ul-style": {
"style": "plus" "style": "plus"
} }
} --> } -->

View file

@ -6,7 +6,7 @@ Heading 3 {MD003}
----------------- -----------------
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": { "heading-style": {
"style": "atx" "style": "atx"
} }
} --> } -->

View file

@ -6,7 +6,7 @@ Heading 3 {MD003}
----------------- -----------------
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": { "heading-style": {
"style": "atx_closed" "style": "atx_closed"
} }
} --> } -->

View file

@ -6,7 +6,7 @@ Heading 3
--------- ---------
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": { "heading-style": {
"style": "setext" "style": "setext"
} }
} --> } -->

View file

@ -2,4 +2,4 @@
Not normally too long of a line, but it would have been from an inline config. Not normally too long of a line, but it would have been from an inline config.
<!-- markdownlint-configure-file { "MD013": { line_length: 70 } } --> <!-- markdownlint-configure-file { "line-length": { line_length: 70 } } -->

View file

@ -2,4 +2,4 @@
Not normally too long of a line, but it is here from an inline config. {MD013} Not normally too long of a line, but it is here from an inline config. {MD013}
<!-- markdownlint-configure-file { "MD013": { "line_length": 70 } } --> <!-- markdownlint-configure-file { "line-length": { "line_length": 70 } } --> {MD013}

View file

@ -55,7 +55,7 @@ This is not allowed.
</P> </P>
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD033": { "no-inline-html": {
"allowed_elements": [ "allowed_elements": [
"h1", "h1",
"h3", "h3",

View file

@ -44,6 +44,6 @@ Text [ link ][reference] text. {MD039}
[reference]: https://example.com/ [reference]: https://example.com/
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": false, "line-length": false,
"MD046": false "code-block-style": false
} --> } -->

View file

@ -39,8 +39,8 @@
* item 3 {MD007} * item 3 {MD007}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD006": false, "ul-start-left": false,
"MD007": { "ul-indent": {
"indent": 3, "indent": 3,
"start_indented": true "start_indented": true
} }

View file

@ -56,5 +56,5 @@ Text
- item 3 {MD006} {MD007} - item 3 {MD006} {MD007}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD006": true "ul-start-left": true
} --> } -->

View file

@ -20,5 +20,5 @@ Heading 3
* list * list
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -59,7 +59,7 @@ Text
1. Item 1. Item
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD031": { "blanks-around-fences": {
"list_items": false "list_items": false
} }
} --> } -->

View file

@ -99,5 +99,5 @@
* 3. Item {MD004} {MD006} {MD007} * 3. Item {MD004} {MD006} {MD007}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD006": true "ul-start-left": true
} --> } -->

View file

@ -75,9 +75,9 @@ code
text text
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD004": false, "ul-style": false,
"MD029": false, "ol-prefix": false,
"MD040": false "fenced-code-language": false
} --> } -->
* list (on last line without newline) {MD047} * list (on last line without newline) {MD047}

View file

@ -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} 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}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"headings": false "headings": false
} }
} --> } -->

View file

@ -25,8 +25,8 @@ Code code code code code code code code {MD013}
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"code_block_line_length": 30 "code_block_line_length": 30
}, },
"MD046": false "code-block-style": false
} --> } -->

View file

@ -20,8 +20,8 @@ Long heading of text text text text text text {MD013}
Text Text
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD003": false, "heading-style": false,
"MD013": { "line-length": {
"heading_line_length": 30 "heading_line_length": 30
} }
} --> } -->

View file

@ -56,7 +56,7 @@ ThisTooLongCodeIsOkay.
{MD013:42} {MD013:42}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"stern": true, "stern": true,
"heading_line_length": 30, "heading_line_length": 30,
"code_block_line_length": 20 "code_block_line_length": 20

View file

@ -31,7 +31,7 @@ This code is short.
{MD013:22} {MD013:22}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"strict": true, "strict": true,
"heading_line_length": 30, "heading_line_length": 30,
"code_block_line_length": 20 "code_block_line_length": 20

View file

@ -9,7 +9,7 @@ This is a very very very very very very very very very long line that is exactly
This line however, while very long, doesn't have whitespace after the 100th columnwhichallowsforURLsandotherlongthings. This line however, while very long, doesn't have whitespace after the 100th columnwhichallowsforURLsandotherlongthings.
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"line_length": 100 "line_length": 100
} }
} --> } -->

View file

@ -47,7 +47,7 @@ Another line.
{: rules="groups"} {: rules="groups"}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD013": { "line-length": {
"code_blocks": false, "code_blocks": false,
"tables": false "tables": false
} }

View file

@ -1,5 +1,5 @@
-- --
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD041": false, "first-line-heading": false,
"MD047": false "single-trailing-newline": false
} --> } -->

View file

@ -63,7 +63,7 @@ body {
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD040": { "fenced-code-language": {
"allowed_languages": [ "allowed_languages": [
"js", "js",
"scss", "scss",

View file

@ -25,7 +25,7 @@ a {}
``` ```
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD040": { "fenced-code-language": {
"allowed_languages": [ "allowed_languages": [
"html", "html",
"css" "css"

View file

@ -7,10 +7,10 @@ title: "First level heading"
## Second level heading ## Second level heading
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD002": { "first-heading-h1": {
"level": 2 "level": 2
}, },
"MD041": { "first-line-heading": {
"level": 2 "level": 2
} }
} --> } -->

View file

@ -46,7 +46,7 @@ Text
Text Text
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD012": { "no-multiple-blanks": {
"maximum": 3 "maximum": 3
} }
} --> } -->

View file

@ -3,9 +3,9 @@ text and text 2 {MD010}
texts with trailing spaces{MD010} texts with trailing spaces{MD010}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD009": false, "no-trailing-spaces": false,
"MD010": { "no-hard-tabs": {
"spaces_per_tab": 0 "spaces_per_tab": 0
}, },
"MD041": false "first-line-heading": false
} --> } -->

View file

@ -74,7 +74,7 @@ text
3. Item {MD029} 3. Item {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "one" "style": "one"
} }
} --> } -->

View file

@ -74,7 +74,7 @@ text
3. Item {MD029} 3. Item {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "ordered" "style": "ordered"
} }
} --> } -->

View file

@ -19,7 +19,7 @@ text
3. Item {MD029} 3. Item {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "zero" "style": "zero"
} }
} --> } -->

View file

@ -74,7 +74,7 @@ text
3. Item {MD029} 3. Item {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "zero" "style": "zero"
} }
} --> } -->

View file

@ -15,7 +15,7 @@ Bad list:
4) Failed! {MD029} 4) Failed! {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "one" "style": "one"
} }
} --> } -->

View file

@ -15,7 +15,7 @@ Bad list:
4. Failed! {MD029} 4. Failed! {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "one" "style": "one"
} }
} --> } -->

View file

@ -15,7 +15,7 @@ Bad list:
1) Failed! {MD029} 1) Failed! {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "ordered" "style": "ordered"
} }
} --> } -->

View file

@ -15,7 +15,7 @@ Bad list:
1. Failed! {MD029} 1. Failed! {MD029}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD029": { "ol-prefix": {
"style": "ordered" "style": "ordered"
} }
} --> } -->

View file

@ -33,7 +33,7 @@ node.JS {MD044}
example.net {MD044} example.net {MD044}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD044": { "proper-names": {
"names": [ "names": [
"markdownlint", "markdownlint",
"Node.js", "Node.js",

View file

@ -43,7 +43,7 @@ text javascript text `javascript` text {MD044}
text `javascript` text javascript text {MD044} text `javascript` text javascript text {MD044}
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD044": { "proper-names": {
"names": [ "names": [
"Internet Explorer", "Internet Explorer",
"markdownlint", "markdownlint",

View file

@ -43,8 +43,8 @@ javascript
</div> </div>
<!-- markdownlint-configure-file { <!-- markdownlint-configure-file {
"MD033": false, "no-inline-html": false,
"MD044": { "proper-names": {
"names": [ "names": [
"HTTPS", "HTTPS",
"JavaScript" "JavaScript"

Some files were not shown because too many files have changed in this diff Show more