This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement basic relative wikilink support
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
- Loading branch information
Showing
3 changed files
with
80 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters