miaolz123 / vue-markdown

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

The `rendered` event should return the created parent `div` #49

Open AlexandreBonneau opened 6 years ago

AlexandreBonneau commented 6 years ago

Currently, the outHtml is sent as the payload with the rendered event. I think it would be more helpful if you could also send a reference to the created parent <div> element.

For instance, by doing so, it gets much more easy to use a code highlighter like Prism that get the parent <div> element to parse it.