question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MD053 / Horizontal Rule style complains when horizontal rule in blockquotes

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Dec 28, 2021

Yes. Next update will be to markdownlint-cli2, then the VS Code extension.

0reactions
redactedscribecommented, Dec 28, 2021

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

<hr>: The Thematic Break (Horizontal Rule) element - HTML
The HTML element represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of ......
Read more >
markdownlint/Rules.md at main - GitHub
A Node.js style checker and lint tool for Markdown/CommonMark files. ... A line of text followed by a horizontal rule becomes a heading...
Read more >
Markdown Basics — markdown-guide 0.1 documentation
You can create a horizontal rule ( <hr /> ) by placing 3 or more hyphens, asterisks, or underscores on a single line...
Read more >
7 — Line Breaks, Horizontal Rules and Blockquotes - YouTube
Markdown break tags, HR and quotes. Get all the videos at http://MasteringMarkdown.com.
Read more >
Not Your Typical Horizontal Rules - Sara Soueidan
The HTML <hr> element adds a horizontal rule (or line) wherever you place it. A horizontal rule is used to provide a visual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found