mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #578] Linting DRY markdown for Jekyll pages (resolve "include_relative") #457
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pbronneberg on GitHub (Sep 9, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/578
For markdown pages that we render through Jekyll, we have moved common references to a
references.mdfile.In all pages, the common references are included like shown in this example:
An example of
references.md:Since the cross-references checks were introduced recently, this leads to
MD053linting errors:"MD053/link-image-reference-definitions: Link and image reference definitions should be needed [Unused link or image reference definition: "markdown-lint"]"
Any hints to overcome this without disabling
MD053?@DavidAnson commented on GitHub (Sep 9, 2022):
In situations like this, I recommend linting the final Markdown output (rather than the pieces that are used to create it).
@pbronneberg commented on GitHub (Sep 10, 2022):
Thanks for the reply! Will see where we can apply that approach.
As far as I've investigated now, Jekyll does not provide an option to just combine the markdown. I will create a question on the Jekyll repo In the meantime, we'll decide to either script this ourselves or ignore the errors.