MD053 / Horizontal Rule style complains when horizontal rule in blockquotes
See original GitHub issueI’d like to use a horizontal rule inside of blockquotes to help with separation without having to resort to needing to place some text between two separate blockquotes (as suggested in MD028).
L1 > Some text.
L2 >
L3 > ---
L4 > Some more text.
Problem is, line 3 complains about consistency due to a plain ---
already existing outside of the block quote.
I’ve tried:
"markdownlint.config": {
"hr-style": {
"style": "> ---"
}
}
But this of course only makes the plain ---
to be the one to complain.
Is there some way to specify multiple valid style
values? Or maybe the MD rule can be improved to account for this use case (I don’t know its implications for all the markdown interpreters)? The “consistent” value should mean the use of the same style of horizontal rule, ---
vs ***
, rather than if it’s inside a blockquote or not, right?
I’m not sure if it’s expected, but, if line 2 isn’t included as a spacer, line 1 complains with:
MD003/heading-style/header-style: Heading style [Expected: atx; Actual: setext]
and
MD022/blanks-around-headings/blanks-around-headers: Headings should be surrounded by blank lines`.
Is >
a type of header, or is this a bug? I can live with inserting a blank line, but I thought I’d mention this just in case.
Thanks.
markdownlint v0.44.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Yes. Next update will be to markdownlint-cli2, then the VS Code extension.
Great news! And by the looks of it, you’re closing in on being able to fix the presence of parentheses in paths issue. Looking forward to being able to make use of this extension again (most my *.md files reside within such a path).