Add support for "markdownlint-configure-file" inline comments (fixes #264).

This commit is contained in:
David Anson 2020-04-05 19:47:12 -07:00
parent dd66a33d75
commit 6ce426cf88
7 changed files with 183 additions and 56 deletions

View file

@ -0,0 +1,5 @@
# Inline Configure File Invalid
Not normally too long of a line, but it would have been from an inline config.
<!-- markdownlint-configure-file { "MD013": { line_length: 70 } } -->

View file

@ -0,0 +1,33 @@
# Inline Configure File Multiple Instances
***
{MD035:3}
Trailing spaces:
<!-- markdownlint-configure-file
{
"hr-style": {
"style": "***"
},
"no-trailing-spaces": false
}
-->
***
{MD035:17}
Trailing spaces:
<!-- markdownlint-configure-file
{
"hr-style": {
"style": "---"
}
}
-->
***
{MD035:30}
Trailing spaces:

View file

@ -0,0 +1,20 @@
# Inline Configure File Multiple Lines
***
{MD035:3}
Trailing spaces:
<!-- markdownlint-configure-file
{
"hr-style": {
"style": "---"
},
"no-trailing-spaces": false
}
-->
***
{MD035:17}
Trailing spaces:

View file

@ -0,0 +1,5 @@
# Inline Configure File Single Line
Not normally too long of a line, but it is here from an inline config. {MD013}
<!-- markdownlint-configure-file { "MD013": { "line_length": 70 } } -->