mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #1619] MD052 Breaks with Hugo inline parameters in the URLs #721
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#721
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 @ivanvc on GitHub (May 30, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1619
What did you do?
I have the following markdown file (
test.md):What did you expect to happen?
Running
markdownlint-cli2should not raise an MD052 issue.What actually happened
It fails to run:
What messages or errors were there?
How can the issue be reproduced?
Use the reference markdown file, and run
docker run -w /src -v $PWD:/src --rm -ti davidanson/markdownlint-cli2 test.mdWhat version were you using?
What operating system were you using?
Reproducible with Docker, the host machine is running Linux.
@DavidAnson commented on GitHub (May 31, 2025):
As written, that is not a valid CommonMark link definition, so it is not recognized as such by the parser and the warning is correct. If you are able to remove the two space characters within, I believe you will get the results you'd like.
https://spec.commonmark.org/0.31.2/#link-destination
@ivanvc commented on GitHub (Jun 5, 2025):
Thanks for the answer, @DavidAnson. I took a look and found that because we're using Docsy (which utilizes Hugo inline shortcodes) to generate the links, the URLs don't adhere to the CommonMark standard.
Closing.