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.

MD035: Horizontal Rule enforcement broken

See original GitHub issue

Dependency versions:

  • markdownlint-cli: 0.31.1
    • markdownlint: 0.25.1
      • markdown-it: 12.3.2

Rule

# MD035 - Horizontal rule style
hr-style:
  style: "* * *"

Description

Previously (0.24.0) using - - - would throw this error:

  • [Expected: * * *; Actual: - - -]

Now it throws:

  • [Expected: * * *; Actual: ---]

Same with * * * *

  • Before: [Expected: * * *; Actual: * * * *]
  • Now: [Expected: * * *; Actual: ****]

Reproduction

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Feb 13, 2022

Fair points. I have an idea how to be picky in the current context and will explore that when I get to this issue. It sounds like you want the freedom to define a break as “* * *” and have that exclusively enforced.

Unrelated, I don’t think it’s fair to blame markdown-it for any problems related to this project. I’m (ab)using it for a purpose it wasn’t intended to support. 😃

1reaction
DavidAnsoncommented, Feb 6, 2022

Ugh, I “improved” this rule by relying more on the parser to identify syntax, but it seems to be normalizing and that leads to this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

markdownlint/Rules.md at main - GitHub
A line of text followed by a horizontal rule becomes a heading --- ... The default value allows 2 spaces to indicate a...
Read more >
<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 >
Markdown Style Guide - Rocket.Chat Docs
MD035 - Horizontal rule style ... Horizontal rules should be created using three slashes ( --- ).
Read more >
Horizontal Rule Broken? - Resolved help - Obsidian Forum
When I try to create a horizontal rule with 3 dashes, it doesn't create a line in preview mode. If I create it...
Read more >
Not Your Typical Horizontal Rules - Sara Soueidan
A horizontal rule is used to provide a visual break and divide content. Like other HTML elements, horizontal rules can be styled using...
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