mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #658] Referency-style link labels with angle brackets trigger "no-inline-html" warning #493
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#493
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 @SvenGroot on GitHub (Nov 28, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/658
If you write a reference-style link, with a label that contains angle brackets, markdownlint will warn about inline HTML even though the label is not rendered and the angle brackets are not interpreted as HTML tags by any markdown application I've used.
Code example:
The following screenshot shows the markdownlint behavior:
As you can see, the warning is shown for both the usage and definition of the label.
My use case here is that I'm using a script to generate references to API documentation using C# type names, so in the case of generic types the label can look like
[`List<T>`](markdownlint still warns about this even with the backticks in the label). I want to be able to use[`List<T>`][], where the label matches the text, as much as possible, so I'd rather not change my labels just to work around spurious warnings.Expected behavior: link labels should be ignored when processing the no-inline-html lint.
markdownlint version: v0.48.1