MD033 "Inline HTML" should allow exceptions
See original GitHub issueMy markdown files contain certain html tags (like <kbd>
) that just can’t be expressed in markdown. I’d suggest to extend the configuration option to accept an array of tags that are considered safe for use in a document.
I generally want to be warned about html in my markdown, but there are situations where I actually need to use the html. I was wondering if there is any way to mark those situations inline, like you would with eslint’s /*eslint-disable foobar */
. (long shot, I don’t see any obvious notation for this…)
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Allow some HTML elements in markdown lint rule MD033 in ...
When authoring Markdown in Visual Studio Code with the markdownlint extension installed, I am seeing lint message MD033/no ...
Read more >Markdownlint Rules - kiki
MD033 - Inline HTML ... Rationale: Raw HTML is allowed in markdown, but this rule is included for those who want their documents...
Read more >Markdownlint - Visual Studio Marketplace
Extension for Visual Studio Code - Markdown linting and style checking for Visual Studio Code.
Read more >Inline elements - HTML: HyperText Markup Language | MDN
In this article, we'll examine HTML inline-level elements and how they differ ... it still would not allow to nest a div element...
Read more >Null-ls - Linter & Formatter - Rocky Linux Documentation
For optimal use of the linter, a rc configuration file must be placed ... MD033/no-inline-html - Inline HTML "MD033": { // Allowed elements ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m still interested in the tag based filter. It allows me to grant global exceptions for
<kbd>
,<var>
etc. The inline exceptions (via<!-- markdownlint-disable MD033 -->
) would be useful for larger constructs that are, well, the exception.I believe the commit above does what you’d like. If you have any issues with it, please let me know! And thanks for your patience. 😃