MD033 "Inline HTML" should allow exceptions

See original GitHub issue

My 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
rodneyrehmcommented, Dec 6, 2015

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.

2reactions
DavidAnsoncommented, Dec 16, 2015

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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found