Skip to content

Page link is not recognized when immediately following a TODO [w] #3991

@M-Fabian

Description

@M-Fabian

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • Lookup. Dendron's Lookup Command
  • Views. Dendron Preview, Tree View, Side Panels in the UI
  • Schema. Dendron Schemas
  • Pod. Data import from / export to Dendron
  • Publish. External Site Publish
  • Markdown. Markdown features, such as syntax support and features

Describe the bug

The recognition of page links immediately following a TODO bracket [ ] fails if the bracket contains something else than a space or an x. The syntax highlighting is wrong, and the link is not shown in the Graph Panel, so the two pages are not connected although one mentions the other. Despite this, the link can be clicked and works as expected.

It looks to me as if it was interpreted as a link of the form [caption](link).

To Reproduce

Add the following text to any dendron page. The TODOs 5 and 6 are highlighted incorrectly.

  • [[notes]] Existing page, blue link.
  • [[doesnotexist]] Non-existing page, yellow link.
  • [[notes]] Existing page, blue link.
  • [[doesnotexist]] Non-existing page, yellow link.
  • [w] [[notes]] The link works but the syntax highlighting is wrong.
  • [w] [[doesnotexist]] Same here.
  • [w] Text before the link fixes syntax highlighting [[notes]] as shown here.
  • [w] Same here [[doesnotexist]].

Expected behavior

I expect the syntax highlighting to be correct and the page link to be recognized in the dendron graph. At least TODO brackets containing the characters suggested in the documentation should work, namely xw?>. Ideally it should work for any single character I put in the TODO bracket.

Screenshots

screenshot

Desktop (please complete the following information)

  • OS: Windows 10
  • Versions (all that apply to bug):
    • Dendron Extension: v0.124.0
    • VS Code version: 1.85.2
    • Dendron CLI:

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope.markdownRelating to markdown features (i.e. supporting new language syntax)status.triage-neededtype.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions