mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #534] Link validation triggers when PANDOC links refer to Zotero citations #436
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#436
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 @elonden on GitHub (Jun 28, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/534
When I insert a link definition like [@abc123] pandoc will look in my Zotero citation reference (bibtex) and insert a reference number pointing to a link at the end of my document.
Markdownlint does flag this as an error and mentions "no link definition found". As there is no MD number associated I can't exclude it. At least I haven't found a way to do this..
Any ideas would be much appreciated.
Regards
Erwin
@DavidAnson commented on GitHub (Jun 28, 2022):
I'm not familiar with Zotero or bibtex, neither is part of the CommonMark specification as far as I know. You probably want to disable the relevant rule for your project, it sounds like MD052/reference-links-images, but the name can be found in the error you are getting.
@elonden commented on GitHub (Jun 28, 2022):
Hello David,
This is the trigger I get:
It doesn't show an MD number so I'm a bit in limbo here.
@DavidAnson commented on GitHub (Jun 28, 2022):
I don't think that error is coming from a built-in markdownlint rule:
github.com/DavidAnson/markdownlint@51cec76c2b/lib/md052.js (L27)I think you may be seeing new VS Code behavior: https://code.visualstudio.com/updates/v1_68#_markdown-link-validation
@elonden commented on GitHub (Jun 28, 2022):
David, you are correct. A while ago I enabled the internal vscode experimental markdown validation. This is where that warning message came from. As I referenced these links somewhat differently before I did not notice this.
Now I've set this to ignore and things look a lot better.. :-)
Sorry for bothering. Maybe it'll help someone though...
Regards
Erwin