Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MD001 fails to detect <hN> tag #1390

Open
xuhdev opened this issue Oct 23, 2024 · 1 comment
Open

MD001 fails to detect <hN> tag #1390

xuhdev opened this issue Oct 23, 2024 · 1 comment
Labels

Comments

@xuhdev
Copy link

xuhdev commented Oct 23, 2024

markdownlint-cli2 reports error for the following markdown file:

# H1

<h2>H2</h2>

### H3
a.md:5 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]
@DavidAnson
Copy link
Owner

This rule (along with almost all the rules) does not attempt to reconcile Markdown structure with embedded HTML elements. (In fact, using HTML is discouraged per rule MD033.) There are many ways a document could alternate between Markdown and HTML and it is not a goal of this tool to try to make sense of all that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants