0👍
I’ve ended up detecting if a string has ‘kcode’ in it with includes(),which is a class every embed’s span has, then converted the string to dom node via jquery parseHtml, read the data attributes via .dataset and creating an object with a type key in the place of the string in the initial array, then simply using v-for and v-if, if its a type=”embed” im using a vue component, if its a text string im just outputing it with v-html.
Source:stackexchange.com