markdown-it-vue
markdown-it-vue copied to clipboard
Cannot use plugin with that...
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
Can you pls share the mounted part that you use the use?
The below code is working
mounted() {
....
this.$refs.markdownView.use(html5media)
}
```