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

When "rendered" event is triggered the dom is still not ready #108

Open fguillen opened 4 years ago

fguillen commented 4 years ago

I have this:

<vue-markdown :source="content" v-on:rendered="afterRenderContent"></vue-markdown>

But when the method afterRenderContent is triggered the HTML elements are still not there.

I would like to do DOM HTML elements manipulation after the rendering but I can not. What is the proper way to wait until the DOM is ready?

I have tried to create a JSFiddle to reproduce the issue but looks like the CDN library is no loading properly: