Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for relative markdown links #732

Open
keithfancher opened this issue Sep 29, 2024 · 0 comments
Open

Add option for relative markdown links #732

keithfancher opened this issue Sep 29, 2024 · 0 comments

Comments

@keithfancher
Copy link

🚀 The feature, motivation and pitch

I think it would be great for obsidian.nvim to have an option to generate relative markdown links to other files in a vault/workspace. Not relative to the workspace root, but relative to the current file.

Basically, this option in Obsidian:
Screenshot from 2024-09-28 17-22-49

This is a really handy option, as it makes the links valid even outside the context of Obsidian (or obsidian.nvim). Without this, any other tool shows these as dead links.

Alternatives

I did come across this discussion, in which it seems the OP got this or something like it working via a custom markdown_link_func function.

But I think this functionality is common enough to warrant a simple config option. That would certainly make me more confident that it would work, backlinks will be correctly detected, and so on! (As opposed to my own special-sauce version, or a copy-pasted function from the above discussion.)

Additional context

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant