val3344 / obsidian-update-relative-links

MIT License
27 stars 2 forks source link

Enhance the tool to support relative path with images #9

Open evolve2k opened 6 months ago

evolve2k commented 6 months ago

When working with images within Obsidian, even after installing your tool, the image path generated does not include the relative path..

My folder structure looks like this (the essays folder contains two files example.md and a subfolder called 'media' that contains image.png)

essays

Here's my workflow.

  1. I save various images I intend to use straight into my 'media' folder
  2. When I drag the image from the media folder into example.md

I get the following syntax in example.md

After installing your plug-in, I was expecting it to include the relative path, being something like:

Without this working my pandoc export is failing as the path to the file is technically incorrect as it doesnt include the proper relative path.

Please enhance your tool to handle drag drop of images.

val3344 commented 5 months ago

Configuring "Files and links -> New link format" to "Relative path to file" should solve your problem.