Skip to content

LSP wrongly parses commented link as "real" links #630

@WhyNotHugo

Description

@WhyNotHugo

Check if applicable

  • I have searched the existing issues (required)
  • I'm willing to help fix the problem and contribute a pull request

Describe the bug

The LSP parses commented out links as "real" links, and does not report them as missing backlinks. zk edit --missing-backlink properly ignores commented-out links.

How to reproduce?

Example:

<!-- Cooperating is key to avoid [reinventing the wheel](ms2u). -->

zk configuration

[lsp.diagnostics]
dead-link = "error"
missing-backlink = { level = "warning", position = "last-section" }

Environment

zk 0.15.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions