Search code examples
visual-studio-codemarkdown

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?


Solution

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