mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add support for "markdownlint-configure-file" inline comments (fixes #264).
This commit is contained in:
parent
dd66a33d75
commit
6ce426cf88
7 changed files with 183 additions and 56 deletions
5
test/inline-configure-file-invalid.md
Normal file
5
test/inline-configure-file-invalid.md
Normal 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 } } -->
|
||||
33
test/inline-configure-file-multiple-instances.md
Normal file
33
test/inline-configure-file-multiple-instances.md
Normal 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:
|
||||
20
test/inline-configure-file-multiple-lines.md
Normal file
20
test/inline-configure-file-multiple-lines.md
Normal 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:
|
||||
5
test/inline-configure-file-single-line.md
Normal file
5
test/inline-configure-file-single-line.md
Normal 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 } } -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue