ravenq / markdown-it-vue

The vue lib for markdown-it.
MIT License
348 stars 67 forks source link

Cannot use plugin with that... #49

Open niceque opened 3 years ago

niceque commented 3 years ago

Just setted up a ref with component made .use(html5media) plugin for video/audio support in mounted() {} but nothig works, where i need to declare use?

Uncaught TypeError: Cannot read property 'apply' of undefined
    at b.use (markdown-it-vue-light.umd.min.js?eb52:1)
    at VueComponent.use (markdown-it-vue-light.umd.min.js?eb52:6)
    at <anonymous>:1:70
awci commented 2 years ago

Can you pls share the mounted part that you use the use? The below code is working


mounted() {
....
this.$refs.markdownView.use(html5media)
}
```