在Markdown Lint规则MD033中允许在Visual Studio代码中的某些HTML元素

发布于 2025-02-01 02:31:36 字数 405 浏览 3 评论 0原文

在使用“ noreferrer”> markdownlint 时查看棉布消息MD033/NOINLINE-HTML:INLINE HTML

如何配置衬里,不要警告我一些特定的HTML元素?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

回眸一笑 2025-02-08 02:31:36

在同一文件夹中与您的Markdown文件相同的文件夹中创建一个.markDownlint.json文件:

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

要配置其他规则,请参见参数:在每个规则下列出的 在这里

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.

韵柒 2025-02-08 02:31:36

添加到 Wallace Kelly的答案,您可以创建一个.vscode/settings.json.json文件和粘贴文件和粘贴这使此配置项目级别:

{
  "markdownlint.config": {
    "MD033": {
      "allowed_elements": ["nobr", "sup", "a"]
    }
  }
}

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"]
    }
  }
}
帅气称霸 2025-02-08 02:31:36

对于那些想为所有项目和使用VS代码的一般方式配置它的人,请添加到seetings.json文件:

  "markdownlint.config": {
    "MD033": {
      "allowed_elements": ["nobr", "sup", "a"]
    }
  },

For those who want to configure it for all projects and in general way with VS code, add to seetings.json file:

  "markdownlint.config": {
    "MD033": {
      "allowed_elements": ["nobr", "sup", "a"]
    }
  },
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文