[GH-ISSUE #802] Disable rules via config file #535

Closed
opened 2026-03-03 01:27:47 +03:00 by kerem · 2 comments
Owner

Originally created by @xoxys on GitHub (May 3, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/802

Looks like disabling rules via config file doesn't seem to work anymore. The following .markdownlint.yml config file stopped working:

---
default: True
MD013: False
MD041: False
MD042: False
MD024: False

exampleSite/content/posts/advanced/shortcodes.md:41:81 MD013/line-length Line length [Expected: 80; Actual: 105]

I'm using markdownlint via igorshubovych/markdownlint-cli

Originally created by @xoxys on GitHub (May 3, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/802 Looks like disabling rules via config file doesn't seem to work anymore. The following `.markdownlint.yml` config file stopped working: ```YAML --- default: True MD013: False MD041: False MD042: False MD024: False ``` > exampleSite/content/posts/advanced/shortcodes.md:41:81 MD013/line-length Line length [Expected: 80; Actual: 105] I'm using markdownlint via `igorshubovych/markdownlint-cli`
kerem 2026-03-03 01:27:47 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@xoxys commented on GitHub (May 3, 2023):

The vscode extension is affected as well.

<!-- gh-comment-id:1532876575 --> @xoxys commented on GitHub (May 3, 2023): The vscode extension is affected as well.
Author
Owner

@xoxys commented on GitHub (May 3, 2023):

As alway, after creating the issue I found the problem... I had a <!-- markdownlint-enable --> instead of <!-- markdownlint-restore --> in a file... Sorry!

<!-- gh-comment-id:1532880769 --> @xoxys commented on GitHub (May 3, 2023): As alway, after creating the issue I found the problem... I had a `<!-- markdownlint-enable -->` instead of `<!-- markdownlint-restore -->` in a file... Sorry!
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#535
No description provided.