[GH-ISSUE #319] Fixable tooling #2122

Closed
opened 2026-03-07 20:04:47 +03:00 by kerem · 7 comments
Owner

Originally created by @Youssef1313 on GitHub (Aug 15, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/319

Many rules in Rules.md explanation states the following:

Fixable: Most violations can be fixed by tooling

it would be good to provide link of this tooling if there is a popular one.

Originally created by @Youssef1313 on GitHub (Aug 15, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/319 Many rules in Rules.md explanation states the following: > Fixable: Most violations can be fixed by tooling it would be good to provide link of this tooling if there is a popular one.
kerem 2026-03-07 20:04:47 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Aug 15, 2020):

Links are at the top of the README: https://github.com/DavidAnson/markdownlint#related

<!-- gh-comment-id:674423721 --> @DavidAnson commented on GitHub (Aug 15, 2020): Links are at the top of the README: https://github.com/DavidAnson/markdownlint#related
Author
Owner

@Youssef1313 commented on GitHub (Aug 15, 2020):

@DavidAnson Thanks for the incredibly fast answer. The tooling under the "related" heading seems to have checkers, not fixers (unless I'm missing something or not fully understanding the given toolings). Can you please provide more info?

Thanks in advance.

<!-- gh-comment-id:674426543 --> @Youssef1313 commented on GitHub (Aug 15, 2020): @DavidAnson Thanks for the incredibly fast answer. The tooling under the "related" heading seems to have checkers, not fixers (unless I'm missing something or not fully understanding the given toolings). Can you please provide more info? Thanks in advance.
Author
Owner

@Youssef1313 commented on GitHub (Aug 15, 2020):

I found this very helpful. I didn't know that VS code extension is able to fix these. I think it would be a better experience that you add this link to Rules.md file in this repo.

After trying what I said, it only fixes the current opened file. I need something to work for all files in a directory and sub-directories as well. It even tries to fixes some rules that I disabled.

<!-- gh-comment-id:674428428 --> @Youssef1313 commented on GitHub (Aug 15, 2020): ~~I found [this](https://github.com/DavidAnson/vscode-markdownlint/blob/main/README.md#rules) very helpful. I didn't know that VS code extension is able to fix these. I think it would be a better experience that you add this link to Rules.md file in this repo.~~ After trying what I said, it only fixes the current opened file. I need something to work for all files in a directory and sub-directories as well. It even tries to fixes some rules that I disabled.
Author
Owner

@DavidAnson commented on GitHub (Aug 15, 2020):

markdownlint-cli and markdownlint-cli2 will both fix multiple files at once.

If you can demonstrate a scenario where the VS Code extension is fixing a rule that is disabled, please let me know because I would like to fix that. Disabled rules should not be reported in the first place, and therefore not be fixable. If you are seeing a rule reported, then it has not been disabled correctly.

<!-- gh-comment-id:674432411 --> @DavidAnson commented on GitHub (Aug 15, 2020): `markdownlint-cli` and `markdownlint-cli2` will both fix multiple files at once. If you can demonstrate a scenario where the VS Code extension is fixing a rule that is disabled, please let me know because I would like to fix that. Disabled rules should not be reported in the first place, and therefore not be fixable. If you are seeing a rule reported, then it has not been disabled correctly.
Author
Owner

@Youssef1313 commented on GitHub (Aug 15, 2020):

A file with only the following content:

Test
-----

will be transformed into:

## Test

on saving.

My .markdownlint.json is:

{
"default": false
}

Here is the part related to markdownlint for settings.json:

  "markdownlint.config": {
    "default": false,
    "MD009": {
      "br_spaces": 0
    }
  }
<!-- gh-comment-id:674435631 --> @Youssef1313 commented on GitHub (Aug 15, 2020): A file with only the following content: ```markdown Test ----- ``` will be transformed into: ```markdown ## Test ``` on saving. My .markdownlint.json is: ``` { "default": false } ``` Here is the part related to markdownlint for settings.json: ``` "markdownlint.config": { "default": false, "MD009": { "br_spaces": 0 } } ```
Author
Owner

@DavidAnson commented on GitHub (Aug 15, 2020):

That is not a change markdownlint will make. Please check to see if you are using the Prettier extension or something like that.

<!-- gh-comment-id:674439359 --> @DavidAnson commented on GitHub (Aug 15, 2020): That is not a change `markdownlint` will make. Please check to see if you are using the Prettier extension or something like that.
Author
Owner

@Youssef1313 commented on GitHub (Aug 15, 2020):

Great. Really thanks.

<!-- gh-comment-id:674440999 --> @Youssef1313 commented on GitHub (Aug 15, 2020): Great. Really thanks.
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#2122
No description provided.