Apple Notes Link to Markdown

I have been wanting to link Apple Notes to other apps. Apple doesn’t do this natively and I don’t want to “share” the note just to have it in Reminders, Kan Do, etc. I finally figured it out:

https://www.icloud.com/shortcuts/45435780d95c4415b95d9d686cd731e6

Unfortunately, it only works on macOS since it is using a shell script, but it works great.

NOTE: Shortcuts has to have Full Disk access in macOS Settings > Privacy