mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1679] MD007: How to format list in a footnote #2582
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#2582
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 @asponring on GitHub (Jul 15, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1679
I am upgrading markdownlint-cli 0.33 to 0.45, thereby going from markdownlint 0.27 to 0.38. Markdownlint is now flagging something that was working previously. I have a footnote that is formatted according to GitHub's style:
The linter says:
The footnote renders correctly on GitHub, but if I follow the linter's recommendation and go to 0 indentation, the list will no longer be part of the footnote and show up as regular text. The linter won't accept 2 spaces either. And if I remove the blank line above the list, I get flagged for MD032.
Any recommendation on how I should reformat this? Thank you!
@DavidAnson commented on GitHub (Jul 15, 2025):
It looks like content must be indented starting at four spaces to be considered part of a footnote and this rule is not taking that into account.
https://github.com/micromark/micromark-extension-gfm-footnote?tab=readme-ov-file#syntax
https://dlaa.me/markdownlint/#%25m%23%20Issue%201679%0A%0AParagraph%20text.%5B%5Enote%5D%0A%0A%5B%5Enote%5D%3A%20Footnote%20and%20now%20list%3A%0A%0A%20%20%20%20*%20Item%201%0A%20%20%20%20*%20Item%202%0A