v-markdown
Updated on Sep 5, 2025 1 minutes to readThe v-markdown directive adds automatic Markdown rendering to an element.
It takes a string with Markdown syntax and replaces the element’s content with the rendered HTML.
• Example
<div v-markdown="'# Title\nSome *italic* text.'"></div>
<!-- Result:
<h1>Title</h1>
<p>Some <em>italic</em> text.</p>
-->