[GH-ISSUE #452] How to disable a rule for all file? #374

Closed
opened 2026-03-03 01:26:19 +03:00 by kerem · 2 comments
Owner

Originally created by @luciolebrillante on GitHub (Oct 29, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/452

Hello,

Sorry for the newbie question but I would like to disable a rule for all files. When I add the parameter to disable a rule in settings.json it doesn't work, the URL is still underlined.
{ "markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited": true, "editor.semanticHighlighting.enabled": true, "markdown-preview-enhanced.previewTheme": "one-dark.css", "editor.fontSize": 16, "markdown-preview-enhanced.codeBlockTheme": "darcula.css", "explorer.confirmDragAndDrop": false, "markdown.marp.enableHtml": true, "window.zoomLevel": 2, "git.enableSmartCommit": true, "markdown-pdf.displayHeaderFooter": false, "MD034": false }

I also tried to create a .markdownlint.json with
"{ MD034": false }
but I didn't get more success.

Could you please explain me briefly how to disable a rule?

Thank you

Originally created by @luciolebrillante on GitHub (Oct 29, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/452 Hello, Sorry for the newbie question but I would like to disable a rule for all files. When I add the parameter to disable a rule in settings.json it doesn't work, the URL is still underlined. `{ "markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited": true, "editor.semanticHighlighting.enabled": true, "markdown-preview-enhanced.previewTheme": "one-dark.css", "editor.fontSize": 16, "markdown-preview-enhanced.codeBlockTheme": "darcula.css", "explorer.confirmDragAndDrop": false, "markdown.marp.enableHtml": true, "window.zoomLevel": 2, "git.enableSmartCommit": true, "markdown-pdf.displayHeaderFooter": false, "MD034": false }` I also tried to create a .markdownlint.json with `"{ MD034": false }` but I didn't get more success. Could you please explain me briefly how to disable a rule? Thank you
kerem 2026-03-03 01:26:19 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Oct 29, 2021):

It sounds like you are using the VS Code extension? There are examples of both approaches in the documentation here: https://github.com/DavidAnson/vscode-markdownlint#markdownlintconfig

From what I can tell of your samples above, it doesn't work in settings because you haven't nested the configuration inside "markdownlint.config" and it doesn't work in the standalone file because the opening quotation mark is in the wrong place.

Here's the config for this project for reference: https://github.com/DavidAnson/markdownlint/blob/main/.markdownlint.json

<!-- gh-comment-id:954859144 --> @DavidAnson commented on GitHub (Oct 29, 2021): It sounds like you are using the VS Code extension? There are examples of both approaches in the documentation here: https://github.com/DavidAnson/vscode-markdownlint#markdownlintconfig From what I can tell of your samples above, it doesn't work in settings because you haven't nested the configuration inside "markdownlint.config" and it doesn't work in the standalone file because the opening quotation mark is in the wrong place. Here's the config for this project for reference: https://github.com/DavidAnson/markdownlint/blob/main/.markdownlint.json
Author
Owner

@luciolebrillante commented on GitHub (Oct 30, 2021):

You answered perfectly ! I use it with vscode yes.

I created a file .markdownlint.config at the root of the project with the example configuration and disable some rules following the documentation and it works!

Thank you for your wonderful program.

<!-- gh-comment-id:955176261 --> @luciolebrillante commented on GitHub (Oct 30, 2021): You answered perfectly ! I use it with vscode yes. I created a file .markdownlint.config at the root of the project with the example configuration and disable some rules following the documentation and it works! Thank you for your wonderful program.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#374
No description provided.