Extra div inside figure tag for Kirby video tags

I need to have an extra div inside <figure>…</figure> when (youtube: …) or (vimeo: …) tags is used in kirbytext(). It is a must to build a custom tag for it, or there’s any smarter way to do it?

You could try with a Kirbytext post filter and some string replacment http://getkirby.com/docs/advanced/kirbytext

Other that that, you can just overwrite the existing tags by copying and changing what you want to change.

Thanks, I was able to overwrite the existing tags.