markdownlint
markdownlint copied to clipboard
A Node.js style checker and lint tool for Markdown/CommonMark files.
MD051 is a very nice rule addition! However some of the markdown files in our project have dynamically inserted figures which start called `fig-1`, `fig-2`. These anchors don't exist in...
Consider this: ```markdown # NuGet ... Renovate looks up the latest version on [nuget.org](https://nuget.org) (or on [alternate feeds](#Alternate%20feeds)) to see if any upgrades are available ... ## Alternate feeds ......
This seems to be a regression introduced by `v0.32.1` release which affects people using markdown comments as [recommended here](https://stackoverflow.com/a/20885980/99834), which is hugely popular, with almost 2k upvotes. We used the...
Split MD022 into two separate configurations to allow enforcing only one of lines_above/lines_below
https://github.com/DavidAnson/markdownlint/blob/main/README.md#md022---headings-should-be-surrounded-by-blank-lines Unless I'm missing something, it doesn't appear I can configure markdownlint to enforce `lines_above` while not enforcing `lines_below`. IIUC, I can only either turn the whole rule off, or...
MD053 incorrectly complains about link references that are contained within square brackets. This is perfectly fine Markdown syntax, rendered correctly and parsed by MD051 (see below), but MD053 fails to...
Rule [MD053](https://github.com/DavidAnson/markdownlint/blob/cba2ca0dbdc8f11e4b97c054380ffd52bb7aae19/doc/Rules.md#md053---link-and-image-reference-definitions-should-be-needed) incorrectly complains about an unused link definition when the link usage: 1. Spans 2 lines 2. Is in a blockquote ## Reproducing The following MarkDown file should reproduce...
First, thanks for all your excellent work on markdownlint! I ran into a minor bug today that I wanted to share. If there are two asterisks in an HTML attribute,...
(I'd have opened a Discussions thread for this if that feature would be enabled. Sorry if this is not a good place for such show and tell announcements.) Something curious...
MD051 currently only checks `` tags for `id="..."` attributes, but this requirement seems arbitrary. Any HTML element may have an `id` attribute to define an anchor. It seems like this...
When rule [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013) is enabled and markdownlint is fixing rule violations, it would be helpful if it could reflow a multiline paragraph. This would greatly improve productivity when editing paragraphs...