Skip to content

Support WikiLinks in Markdown Style Reference Links #1572

@quixoticmoon

Description

@quixoticmoon

Is your feature request related to a problem? Please describe.

Currently, Foam supports Wiki-style links ([[#header]]) for internal navigation, but these links do not work when combined with Markdown reference-style links.

For example:

# Notes

## What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry...

[bad]: [[#What is Lorem Ipsum?]]

[ok]: #what-is-lorem-ipsum

[This doesn't work][bad]
[But this does][ok]

Describe the solution you'd like

Ideally, I'd like Foam to support Wiki Style links inside of Markdown Reference Style links. I think that doing so would be helpful for longer documents where I am constantly repeating the same internal link.

Describe alternatives you've considered

Naturally, things work fine if you write everything in pure Markdown. If anything this is a self-inflicted problem, but personally, I find that Wiki Style links are easier to read at a glance compared to regular Markdown links. And I'd rather not switch between internal link syntaxes to reduce duplication.

Screenshots or Videos

Preview the above Markdown snippet using VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions