miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

[feature request] add 'inline' prop #22

Closed mvanroon closed 9 months ago

mvanroon commented 7 years ago

I'd like to be able to only parse inline tags, like <em>, <strong> and <a>. Single line rendering, without paragraph wrap, so that:

<h2><vue-markdown>Hello. *Is it me you're looking for?*</vue-markdown></h2>

Does not render as (current situation): <h2>Hello. <div><p><em>Is it me you're looking for?</em></p></div></h2>

But instead renders like this: <h2>Hello. <em>Is it me you're looking for?</em></h2>

See: https://markdown-it.github.io/markdown-it/#MarkdownIt.renderInline