Drag and drop an image into a markdown file vs "copy item url" and then paste?

If I am wanting to embed a jpg file (that is also stored in Devonthink) into a markdown file, I note that I can drag and drop and end up with this for example:

![my\ image](attachments/my_image.jpg)

Alternatively if I “copy item url” and then paste, prefixed with an ! to embed the image, thus:

![my\ image](x-devonthink-item://1E9F4D9C-7E40-4416-B4CE-B9EDFEE37DFA)

Is there a practical difference in either of these two approaches?

  1. You can’t embed an image into Markdown via any linking method.
  2. There is no need for escaping spaces in the alt text, if you’ve added that backslash yourself.
  3. Relative and absolute links are human-readable and more clear about where they are stored.
    Item links have no indicator of location but this also means the assets can be moved or even renamed without breaking a link.
    See Documents > Markdown Documents in the built-in Help and manual.
1 Like

Thanks for the reply, I appreciate it. Having a look at the Help docs now.

You’re welcome :slight_smile: