Hi,
I am currently building a optimized AMP version of my blogposts. I figured out the routing with help of another thread on this board but struggling with a plugin (inserting inline styles, amp doesn’t like that).
Is there a way to override / deactivate a tag behaviour? In my case its oembed.
What I want:
Instead of parsing (oembed: url/to/video) it should do nothing (or just insert the url).
(you need to change the amp-Function to remove the oembed code…)
Then use it like this in your templates: <?php $maincontent = kirbytext(amp($page->text())) ?>
What I did was creating “amp markdown code” which I transformed to AMP-HTML using custom tags.