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]
})
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:
and
based on the following documentation, extension installed as object or array.