When you insert a YouTube URL to a confluence page, it gets replaced by the YouTube macro within a second. Also, the URL will be but as paramter of the macro.
When you insert a Jira URL (of a application linked Jira), it gets replaced by the Jira macro within a second. Also, the parameters are set automatically.
How can I achieve this with my own User Macro?
I want a specifiy URL (linke https://foo.net/bar) to always get transformed to my Foo macro.