Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Implement basic relative wikilink support #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lily-mara
Copy link

Closes #35. This allows hugo-obsidian to intuit absolute paths from unanchored wikilink paths. Previously, a note at directory/note.md would need to be linked using [[directory/note]] in order for the link to be recognized by this tool. This change allows the shorter [[note]] link to be used. This is accomplished by first walking the directory tree and storing absolute paths for every path basename, and using this to substitute link names before rendering them.

There's no test infrastructure for this project, but IWOMM

Closes jackyzha0#35. This allows hugo-obsidian to intuit absolute paths from unanchored
wikilink paths. Previously, a note at `directory/note.md` would need to be
linked using `[[directory/note]]` in order for the link to be recognized by this
tool. This change allows the shorter `[[note]]` link to be used. This is
accomplished by first walking the directory tree and storing absolute paths for
every path basename, and using this to substitute link names before rendering them.

There's no test infrastructure for this project, but IWOMM
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backlinks and graph doesn't work with wikilinks
1 participant