zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.07k stars 221 forks source link

BUG: When importing an image from my computer, how can I set the image's link format to be in Markdown type, and how can I control the image's name? #1863

Closed distantlullaby closed 2 months ago

distantlullaby commented 3 months ago

as i see this option doesn't work

image image

after importing an image,the original image'name has been edited,

image

zsviczian commented 2 months ago

markdown links are not supported under the Embedded Files section. Why would you need that??

you can rename the image as any other file in Obsidian (in the Obsidian file explorer simply right click and select rename). I also have a script "rename image" available in the Excalidraw script store. Then you can select an image and rename it in the drawing. Finally if you drag and drop the image from your PC instead of using the add image button, then it will retain the filename from your local drive. (note, there is a bug in 2.2.8 which will result in duplicated images when you drag and drop images from the local file system. this will be fixed in 2.2.9.