Perplexity.ai uses Markdown, but for references (a key feature of complexity) the markdown format is not the same as the one Bear uses. I wrote about it here.
I found the Shortcuts app frustrating to use for this type of thing (which is just a search and replace on the clipboard), so I’m going to try doing the same thing but using Python.