Markdown: how to "sync" behaviour between Strapi's preview mode; and my frontend?

Hello, I use a ‘richtext’ field aka Rich text (Markdown) for my content. I love markdown. In Strapi, there is a very simple preview mode.

On my frontend Vue app, I load markdown using the markdown-it package.

I need to find a way to SYNC the interpretation of markdown backend and frontend.
I need to define custom behaviours (eg. render a youtube widget instead of a youtube URL) that would work both backend and frontend.

How should I approach this ?

Thanks !

This topic has been created from a Discord post (1280251551876911155) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord