Link to attachments with the new markup formatting?

JIRA Cloud switched from wiki markup to markdown. In the old version it was possible to link an attachment with [text|^attachment.png]. How can this be achieved in the new version, I don’t see anything in https://confluence.atlassian.com/jiracorecloud/markdown-formatting-in-jira-cloud-973486932.html.