[GH-ISSUE #317] Question: markdownlint doesn't seem to be reading .markdownlint.json #272

Closed
opened 2026-03-03 01:25:18 +03:00 by kerem · 5 comments
Owner

Originally created by @FilBot3 on GitHub (Aug 13, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/317

I have a little sample project I was trying to use

➜  Markdown_Pandoc_Reveal.JS tree .
.
├── dist
│   ├── slides.html
│   ├── slides_not_worky.html
│   └── slides_working.html
├── images
│   └── MechAssaultCover.png
├── Makefile
├── markdownlint.yaml
├── .markdownlint.json
├── reveal.js-3.9.2.tar.gz
├── reveal.js
│   └── <files...>
└── src
│   └── 00_introduction.md
│   └── title.yml

3 directories, 9 files

The .markdownlint.json file has the following contents:

{
    "default": true,
    "MD025": false
}

and my 00_introduction.md file has multiple # headers, which is what I want. However, markdownlint doesn't seem to be reading it. Am I doing this correctly?

Originally created by @FilBot3 on GitHub (Aug 13, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/317 I have a little sample project I was trying to use ```bash ➜ Markdown_Pandoc_Reveal.JS tree . . ├── dist │   ├── slides.html │   ├── slides_not_worky.html │   └── slides_working.html ├── images │   └── MechAssaultCover.png ├── Makefile ├── markdownlint.yaml ├── .markdownlint.json ├── reveal.js-3.9.2.tar.gz ├── reveal.js │ └── <files...> └── src │ └── 00_introduction.md │ └── title.yml 3 directories, 9 files ``` The `.markdownlint.json` file has the following contents: ```json { "default": true, "MD025": false } ``` and my `00_introduction.md` file has multiple `#` headers, which is what I want. However, markdownlint doesn't seem to be reading it. Am I doing this correctly?
kerem 2026-03-03 01:25:18 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@FilBot3 commented on GitHub (Aug 13, 2020):

I have this same .markdownlint.json in other folders and it seems to work there. Even a .yaml version of this file. I don't understand why it's not being loaded or applied to the project above.

<!-- gh-comment-id:673454230 --> @FilBot3 commented on GitHub (Aug 13, 2020): I have this same `.markdownlint.json` in other folders and it seems to work there. Even a `.yaml` version of this file. I don't understand why it's not being loaded or applied to the project above.
Author
Owner

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

What tool are you using? Probably the CLI or VS Code extension? If you're using the CLI, what command line are you using?

As you say, this same file works elsewhere, so what do you think is special about this situation? Do you have a pointer to a repository that demonstrates the problem?

<!-- gh-comment-id:673576038 --> @DavidAnson commented on GitHub (Aug 13, 2020): What tool are you using? Probably the CLI or VS Code extension? If you're using the CLI, what command line are you using? As you say, this same file works elsewhere, so what do you think is special about this situation? Do you have a pointer to a repository that demonstrates the problem?
Author
Owner

@FilBot3 commented on GitHub (Aug 18, 2020):

I am using Vim with coc.nvim and the coc-markdownlint plugin. Form my tinkering around, it seems that unless my folder is a Git repository, my .markdownlint.json wasn't getting loaded or something. This may not be an issue with this application itself and may be more of an issue with the coc-markdownlint plugin.

<!-- gh-comment-id:675670005 --> @FilBot3 commented on GitHub (Aug 18, 2020): I am using Vim with coc.nvim and the coc-markdownlint plugin. Form my tinkering around, it seems that unless my folder is a Git repository, my `.markdownlint.json` wasn't getting loaded or something. This may not be an issue with this application itself and may be more of an issue with the coc-markdownlint plugin.
Author
Owner

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

Agreed. Please open an issue against that tool. The markdownlint library doesn’t handle this scenario. (It just exposes a helper function to load files it is specifically asked to.)

<!-- gh-comment-id:675672044 --> @DavidAnson commented on GitHub (Aug 18, 2020): Agreed. Please open an issue against that tool. The `markdownlint` library doesn’t handle this scenario. (It just exposes a helper function to load files it is specifically asked to.)
Author
Owner

@FilBot3 commented on GitHub (Aug 18, 2020):

Thank you for your quick responses, @DavidAnson !

<!-- gh-comment-id:675681575 --> @FilBot3 commented on GitHub (Aug 18, 2020): Thank you for your quick responses, @DavidAnson !
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#272
No description provided.