Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allow some HTML elements in markdown lint rule MD033 in Visual Studio Code

When authoring Markdown in Visual Studio Code with the markdownlint extension installed, I am seeing lint message MD033/no-inline-html: Inline HTML.

enter image description here

How can I configure the linter not to warn me about a few specific HTML elements?

like image 343
Wallace Kelly Avatar asked Nov 20 '25 00:11

Wallace Kelly


2 Answers

Create a .markdownlint.json file in the same folder as your markdown file:

{
  "MD033": {
    "allowed_elements": [
      "nobr",
      "sup"
    ]
  }
}

To configure other rules, see the Parameters: listed under each rule here.

like image 88
Wallace Kelly Avatar answered Nov 22 '25 03:11

Wallace Kelly


Adding to Wallace Kelly's answer, you can create a .vscode/settings.json file and paste this to make this config project level:

{
  "markdownlint.config": {
    "MD033": {
      "allowed_elements": ["nobr", "sup", "a"]
    }
  }
}
like image 26
Victor Ribeiro Avatar answered Nov 22 '25 04:11

Victor Ribeiro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!