Is it possible to override built-in XP embed macro?

Title mostly says it all. I’m importing a bunch of wordpress content, where we have embedded content in the format

[embed]https://youtu.be/123[/embed]
[embed]https://vimeo.com/345[/embed]

It’d be nice to continue using the same format, but having more logic on the embed body. The build in thingy just complains about the missing iframe…

If it isn’t possible, I guess I need to rewrite the content during the import, converting the [embed]s to [video] or smth like that.

If you create a macro in an app it should take precedence over the built-in macros with the same name.

So if you create a macro with name “embed” and your own logic, it will be used instead of the built-in one, as long as you set the app on your site config.

6 Likes