[GH-ISSUE #1145] Use markdownlint wirth quarto ".qmd" - files #2473

Closed
opened 2026-03-07 20:08:05 +03:00 by kerem · 4 comments
Owner

Originally created by @GitHubGeniusOverlord on GitHub (Mar 5, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1145

Hi,

is there a way to use this plugin on .qmd files?
Quarto https://github.com/quarto-dev/quarto-cli is a scientific publishing system based on markdown which allows executing code in between the markdown elements.
It would be absolutely awesome if we could make markdownlint work with quarto.

Example:
test.qmd

# This is just some markdown
and we expect markdownlint to mark this as missing a line in between
Originally created by @GitHubGeniusOverlord on GitHub (Mar 5, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1145 Hi, is there a way to use this plugin on .qmd files? Quarto https://github.com/quarto-dev/quarto-cli is a scientific publishing system based on markdown which allows executing code in between the markdown elements. It would be absolutely awesome if we could make markdownlint work with quarto. Example: test.qmd ``` # This is just some markdown and we expect markdownlint to mark this as missing a line in between ```
kerem 2026-03-07 20:08:05 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Mar 5, 2024):

As a library, you can pass any file in and it will be linted. If you are using this library through one of the markdownlint CLIs, you can similarly specify "*.qmd". If you are using the VS Code markdownlint extension, you can tell Code to treat .qmd files as Markdown and they should automatically be linted.

<!-- gh-comment-id:1979431582 --> @DavidAnson commented on GitHub (Mar 5, 2024): As a library, you can pass any file in and it will be linted. If you are using this library through one of the markdownlint CLIs, you can similarly specify "*.qmd". If you are using the VS Code markdownlint extension, you can tell Code to treat .qmd files as Markdown and they should automatically be linted.
Author
Owner

@GitHubGeniusOverlord commented on GitHub (Mar 6, 2024):

Worked for me with the VS Code extension. It would be cool to mention this in the extensions documentation. Or possibly to set this property at installation time.

<!-- gh-comment-id:1980327535 --> @GitHubGeniusOverlord commented on GitHub (Mar 6, 2024): Worked for me with the VS Code extension. It would be cool to mention this in the extensions documentation. Or possibly to set this property at installation time.
Author
Owner

@GitHubGeniusOverlord commented on GitHub (Mar 13, 2024):

I have to correct: While VS Code can be taught to teach .qmd files as .md, this leads to the .qmd loosing its properties. For examples a cell in the .qmd cannot be run anymore. This renders this approach unusable at the moment.

<!-- gh-comment-id:1994236658 --> @GitHubGeniusOverlord commented on GitHub (Mar 13, 2024): I have to correct: While VS Code can be taught to teach .qmd files as .md, this leads to the .qmd loosing its properties. For examples a cell in the .qmd cannot be run anymore. This renders this approach unusable at the moment.
Author
Owner

@DavidAnson commented on GitHub (Mar 13, 2024):

As a request for linting non-Markdown files in the VS Code extension, this is a duplicate of: https://github.com/DavidAnson/vscode-markdownlint/issues/228

<!-- gh-comment-id:1994572026 --> @DavidAnson commented on GitHub (Mar 13, 2024): As a request for linting non-Markdown files in the VS Code extension, this is a duplicate of: https://github.com/DavidAnson/vscode-markdownlint/issues/228
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#2473
No description provided.