-
Notifications
You must be signed in to change notification settings - Fork 18
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
FR: Relative path #27
Comments
if you are still looking for relative path for this I needed it for my vault and got it working well enough. Here is the changes to the main.ts file in the .obsidian/plugins folder replace: with: |
Once that's added to the .js what do you put for the path in the data block in your Obsidian file? I tried . and currentDir/currentFilePath. |
Why not do a pull request? That would be very nice addition. |
After I put that in the main.js I use paths like this: I also took all the plugin files and edited them myself to make a sort of "custom" plugin lol. Dont know if that is required.
I just wanted to share my findings to help out. Just doing the bare minimum atm lol. Feel free to take my tiny changes and create a more organized way of sharing them. |
Thanks for the fix. It seems to work for relative folders, but I am not a dev and I would not know how to do this in an actual TS file to do a pull request:( It would be nice also it accepts regular relative (./images) absolute path (/imgaes) syntax.
|
Hi
It would be very helpful if it accepts relative (to the current note) path, the absolute path makes it a right requirement.
Maybe something like this
->folder
-->assets
-->gallery.md
gallery.md
The text was updated successfully, but these errors were encountered: