mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1524] MD052 triggered by selected checkbox in github flavoured markdown #2549
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#2549
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 @deosrc on GitHub (Mar 2, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1524
As per the title, MD052 is being triggered by selected checkboxes in github flavoured markdown:
@deosrc commented on GitHub (Mar 2, 2025):
Realised this was caused by this configuration I coped from https://github.com/DavidAnson/markdownlint/blob/main/.markdownlint.json
@DavidAnson commented on GitHub (Mar 2, 2025):
Is there anything to indicate this is supposed to be a checkbox instead of being a missing reference definition as is being reported? Should every instance of
[x]be ignored in case it could be a checkbox? For my own future reference, maybe this is only meaningful as the first thing of a list item? https://github.blog/news-insights/product-news/task-lists-in-gfm-issues-pulls-comments/@DavidAnson commented on GitHub (Mar 2, 2025):
I think this is a scenario where you should disable the rule (at least for now) - you can use inline comments to do so for just the TODO list.
@DavidAnson commented on GitHub (Mar 2, 2025):
Good point! I configure it to be extra picky, so this shouldn't be seen by default. Thanks for calling that out.
@deosrc commented on GitHub (Mar 2, 2025):
Thanks, yes I've disabled the rule.
A quick test suggests checkboxes only work in lists:
[ ] Not a checkbox
[x] Not a checkbox
A reference link of
[x]would seem unlikely, until a major social media site had a rename.@DavidAnson commented on GitHub (Mar 2, 2025):
Haha! FYI, I think you can opt out of the customization from my configuration and keep the rule on but skip the strict shortcut behavior I enabled. (I'm not sure if that was clear.) Thanks for doing that bit of research!