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

Changing default props globally #105

Open drbarto opened 4 years ago

drbarto commented 4 years ago

Is it possible to provide a default configuration for all instances of the component? I know I can override the default (e.g.) linkify value per instance, but I would like to set it globally on VueMarkdown itself, something like this:

import VueMarkdown from 'vue-markdown'

VueMarkdown.configure({
  linkify: false
})

Vue.component('vue-markdown', VueMarkdown)