mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #452] How to disable a rule for all file? #374
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#374
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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.