iOS Shortcut for Markdown Doc link?

Anyone have an iOS Shortcut to create a link to the current DTTG document in Markdown
[doc title)[link)

Would like to automate the addition of a link from the current document by saving a Shortcut generated markdown link to the clipboard for use in Bear notes.

There isn’t an elegant way to do this yet. We are discussing options internally.

1 Like

You might want to take a look at this thread.

As I understand the UUID (the unique document number) isn’t passed from DTTG to Shortcuts since version 3 due to incompatibility with some apps when a document is shared to those apps. But you can have Shortcuts ‘pull’ the UUID from a selected document, i.e. you first need to open that document in DTTG.

Be aware I use this workaround on multiple devices and noticed older devices require split screen to work well (I presume due to lack of memory). Newer devices can run the Shortcut with the x-callback without split screen, but you might just try for yourself whether you require split screen. But be advised, if it doesn’t you might need to restart the device to get things back in working order.

After Shortcut has obtained the UUID, you can flow it into a variable and obtain the document title with the UUID as well. With both the title and UUID you can construct the markdown in a text containing the variables of both. I presume you can share the result immediately to the app where you want to store the markdown.

1 Like

This is the best I’ve managed:

I think it will only work on an iPad since DTTG must be open for it to work so this requires Shortcuts to in split-screen or slide-over mode.


I’ve used it on an iPhone if I recall correctly, which was one of the newer devices that didn’t require split screen.

1 Like

Thanks, even maybe just as a choice on the press copy menu…

Thanks, will give a try and hope for a more “elegant” solution in future updates.

Personally speaking, I think the UUID should be send from the sharesheet again as it can be filtered out with Shortcuts in those circumstances that the UUID is misinterpreted by some apps.

IMO apps that misinterpret text (the document title) and erronously replace it with a URL (x-devonthink-item://UUID) should fix things on their side. But perhaps there’s a good reason those apps can’t.

Dear developers, can you add MD-link function to “Copy…” menu, please?

No promises but the request is noted.

My current workaround is:

  • Copy item link in DTTG
  • Run this shortcut
  • Paste MD link

Boring but works.


Thank you, psidnell and pda0!

Seems not to work with iOS 15 beta 6…any thoughts on the issue or a fix?

I was able to simplify the shortcut. It still just uses clipboard. DEVONthink get item isn’t working correctly on iOS15 and throws an error whenever I try to use the shortcut in a share sheet to grab the item link.

If someone has a better solution on iOS 15, please let me know. This is very frustrating trying to get a link to put in a markdown file.