How to inject inline element into v-html? #11194
Unanswered
ivanjaros
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a markdown input where I am adding custom MD tags that will transform into vue components. The MD returns HTML which I am rendering via v-html. Block tags are easy because I can just split the input into a list and render it based on the component/tag or default to html.
The problem is that the html is rendered via v-html so if I want to inject element to replace inline markdown tag, it seems I am out of luck because if i split the input i end up with v-html + my inline component + v-html and v-html is always rendered in a div. So no inlining can take place.
How should I go about this?
Beta Was this translation helpful? Give feedback.
All reactions