Bug: False positive with updated MD053 rule
rodcloutier opened this issue · comments
Rodrigue Cloutier commented
Version 0.32.2 introduces new fixes for MD053. It seems that with mkdocs, the given file gives a false positive.
$ cat test.md
# header
!!! notes
The [link]
[link]: https://tekton.dev/docs/pipelines/pipelines/
$ markdownlint test.md
test.md:7:1 MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "link"] [Context: "[link]: https://tekton.dev/do..."]
David Anson commented
Per the CommonMark specification, indenting text by four spaces makes it a code block and so the content within is not a link reference and the message is correct.
Rodrigue Cloutier commented
Thanks for pointing this out.
I just found this to add support for admonitions DavidAnson/markdownlint#207 which would probably be a way out for this.