mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[PR #1299] [MERGED] MD018: do not check # in HTML blocks #1362
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#1362
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?
📋 Pull Request Information
Original PR: https://github.com/DavidAnson/markdownlint/pull/1299
Author: @fyc09
Created: 7/17/2024
Status: ✅ Merged
Merged: 7/20/2024
Merged by: @DavidAnson
Base:
next← Head:patch-1📝 Commits (5)
d2c3b7bfix: treat html_block as code.865b5aeIgnore HTML blocks in MD018c5b9c27Ignore HTML blocks in MD020.8a30e08Lint code and add tests.6b8e423update snapshots📊 Changes
7 files changed (+76 additions, -8 deletions)
View changed files
📝
demo/markdownlint-browser.js(+12 -4)📝
helpers/helpers.js(+7 -1)📝
lib/md018.js(+2 -1)📝
lib/md020.js(+3 -2)➕
test/ignore-html-block.md(+13 -0)📝
test/snapshots/markdownlint-test-scenarios.js.md(+39 -0)📝
test/snapshots/markdownlint-test-scenarios.js.snap(+0 -0)📄 Description
Fix #1268.
Side Effect: MD013 will treat html code (including embedded markdownlint-configure-file) as code blocks, which will emit errors in these cases:
github.com/DavidAnson/markdownlint@b2305efafb/test/long-lines-short-code.md (L27-L32)github.com/DavidAnson/markdownlint@b2305efafb/test/long-lines-short-code.md (L27-L32)github.com/DavidAnson/markdownlint@b2305efafb/test/long-lines-strict.md (L33-L39)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.