mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00:13 +01:00
MD023 should not report violations for proper blockquotes in lists (fixes #146).
This commit is contained in:
parent
0bb38faa21
commit
813abc4f27
2 changed files with 37 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
const shared = require("./shared");
|
const shared = require("./shared");
|
||||||
|
|
||||||
const spaceBeforeHeadingRe = /^\s+\S/;
|
const spaceBeforeHeadingRe = /^((?:\s+)|(?:[>\s]+\s\s))[^>\s]/;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"names": [ "MD023", "heading-start-left", "header-start-left" ],
|
"names": [ "MD023", "heading-start-left", "header-start-left" ],
|
||||||
|
|
|
||||||
36
test/blockquote-headings.md
Normal file
36
test/blockquote-headings.md
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# Heading
|
||||||
|
|
||||||
|
## Sub-heading
|
||||||
|
|
||||||
|
> # Quoted heading {MD025}
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> > # Double-quoted heading {MD025}
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> ## Quoted sub-heading
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> ## Quoted indented sub-heading {MD023} {MD027}
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
- Item
|
||||||
|
item
|
||||||
|
> # Quoted heading in list {MD025}
|
||||||
|
- Item
|
||||||
|
item
|
||||||
|
> > # Double-quoted heading in list {MD025}
|
||||||
|
- Item
|
||||||
|
item
|
||||||
|
> ## Quoted sub-heading in list
|
||||||
|
- Item
|
||||||
|
- Item
|
||||||
|
item
|
||||||
|
> ## Quoted indented sub-heading in list {MD023}
|
||||||
|
- Item
|
||||||
|
|
||||||
|
Text
|
||||||
Loading…
Add table
Add a link
Reference in a new issue