[GH-ISSUE #279] Add rule for link list indent #2087

Open
opened 2026-03-07 20:04:25 +03:00 by kerem · 0 comments
Owner

Originally created by @koppor on GitHub (Apr 29, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/279

Good

[hyperref]: https://ctan.org/pkg/hyperref
[listings]: https://ctan.org/pkg/listings
[minted]: https://ctan.org/pkg/minted

Bad

  [hyperref]: https://ctan.org/pkg/hyperref
  [listings]: https://ctan.org/pkg/listings
  [minted]: https://ctan.org/pkg/minted

Explanation

I sometimes encounter Markdown documents where the list of links at the end of the document are idented by spaces. This should not happen.

I am not talking about link checking (issue https://github.com/DavidAnson/markdownlint/issues/253). Meaning: Is every link listed in the block really used in the document. This would be left for real future work ^^.

This somehow refs https://github.com/DavidAnson/markdownlint/issues/40

Originally created by @koppor on GitHub (Apr 29, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/279 ### Good ```markdown [hyperref]: https://ctan.org/pkg/hyperref [listings]: https://ctan.org/pkg/listings [minted]: https://ctan.org/pkg/minted ``` ### Bad ```markdown [hyperref]: https://ctan.org/pkg/hyperref [listings]: https://ctan.org/pkg/listings [minted]: https://ctan.org/pkg/minted ``` ### Explanation I sometimes encounter Markdown documents where the list of links at the end of the document are idented by spaces. This should not happen. I am not talking about link checking (issue https://github.com/DavidAnson/markdownlint/issues/253). Meaning: Is every link listed in the block really used in the document. This would be left for real future work ^^. This somehow refs https://github.com/DavidAnson/markdownlint/issues/40
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#2087
No description provided.