Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link validation triggers when PANDOC links refer to Zotero citations #534

Closed
elonden opened this issue Jun 28, 2022 · 4 comments
Closed
Labels

Comments

@elonden
Copy link

elonden commented Jun 28, 2022

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
Copy link
Owner

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
Copy link
Author

elonden commented Jun 28, 2022

Hello David,

This is the trigger I get:

image

It doesn't show an MD number so I'm a bit in limbo here.

@DavidAnson
Copy link
Owner

I don't think that error is coming from a built-in markdownlint rule:

  1. The new rule is not yet available in the VS Code extension
  2. The message from MD052 is worded differently:
    `Missing link or image reference definition: "${label}"`,

I think you may be seeing new VS Code behavior: https://code.visualstudio.com/updates/v1_68#_markdown-link-validation

@elonden
Copy link
Author

elonden commented 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.

image

Now I've set this to ignore and things look a lot better.. :-)

Sorry for bothering. Maybe it'll help someone though...

Regards
Erwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants