TuanManhCao / digital-garden

Free Obisidian Publish alternative, for publishing your digital garden.
https://mindstone.tuancao.me
MIT License
696 stars 76 forks source link

auto-add prefix / folder-name for images #32

Open patrickchan911 opened 2 months ago

patrickchan911 commented 2 months ago

Since Obsidian come up with an "Attachment Folder Path" function, images in notes can use filename directly without need to type a full path: ![](untitled1.jpg) which in html: <img src="untitled1.jpg" />

However in MindStone, if the directory of the image isn't included in the path, the image will be seen as a normal note / .md. (if we don't convert the image link from the note and open it directly, the image link will become like: https://sitename/note/untitled1.jpg which will show 404 in the browser.)

Is there any way to have a config about this?? (e.g. change the routing rules maybe??)