mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #145] MD025 in quoted sections unlike Ruby markdownlint #1973
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#1973
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jpluimers on GitHub (Sep 15, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/145
MD025 (documentation/source) gets generated within quotes.
This passes in the Ruby version of markdownlint. Their implementation is here.
Example 1: cannot start quoted heading at level 1 with
#Example 2: renders OK, but you have to start at level 2 with
##@DavidAnson commented on GitHub (Jan 8, 2019):
Per the CommonMark specification (which is what guides this project), a heading inside a blockquote is still a heading. Therefore, the warning above is correct; there are two
h1headings in the document.Specification: https://spec.commonmark.org/0.28/#block-quotes
Example above: https://spec.commonmark.org/dingus/?text=%23%20Heading%201%0A%0A%23%23%20Heading%202%0A%0ASome%20text%0A%0A%3E%20%23%20Quoted%20heading%201