Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install extension over vue plugin. #9

Closed
juangnakarani opened this issue May 22, 2019 · 1 comment
Closed

Can't install extension over vue plugin. #9

juangnakarani opened this issue May 22, 2019 · 1 comment

Comments

@juangnakarani
Copy link

juangnakarani commented May 22, 2019

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
Copy link
Owner

Based on our current documentation:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants