mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1419] Allow Consecutive GitHub Alerts #680
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#680
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 @gabeseltzer on GitHub (Nov 15, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1419
GitHub uses the following syntax for "Alerts":
If you put two alerts consecutively like this, you get a warning about:
MD028/no-blanks-blockquote: Blank line inside blockquoteCan we change the parsing for the rule so that it recognizes the kinds of alerts and allows spaces between them?
@DavidAnson commented on GitHub (Nov 16, 2024):
The rule documentation explains that this scenario is reported as a violation because some parsers combine consecutive blockquotes into one. That is not what the CommonMark specification says to do and it's not what GitHub does for blockquotes, but it can be a problem. I don't think this situation is unique to GitHub Alerts and I'd recommend disabling the rule if you're only authoring for GitHub.
https://github.com/DavidAnson/markdownlint/blob/main/doc/md028.md