meteorlxy / vue-showdown

:page_with_curl: Use showdown as a vue component
https://vue-showdown.js.org
MIT License
129 stars 23 forks source link

Can't install extension over vue plugin. #9

Closed juangnakarani closed 5 years ago

juangnakarani commented 5 years ago

I want to use showdown-highlight, an extension showdown for syntax highlighting. VueShowdown installed as vue plugin. There is no issue but the extension is not working. I was checking all dependency related extension and there is no issue. Here is my code snippet:

  //main.js
  import ShowdownHighlight from 'showdown-highlight/lib'

  Vue.use(VueShowdown, {
  // set default flavor of showdown
  flavor: 'github',
  // set default options of showdown (will override the flavor options)
  options: {
    emoji: true,
  },
  extensions: [ShowdownHighlight]
})

and

  //Component.vue
  <VueShowdown :markdown="fileContent"/>

based on the following documentation, extension installed as object or array.

meteorlxy commented 5 years ago

Based on our current documentation:

image

image