k55k32 / markdown-it-editor

a markdown rich text editor base on markdown-it and vue2
https://k55k32.github.io/markdown-it-editor/
61 stars 8 forks source link

Add support for markdown-it plugins #11

Closed grochadc closed 6 years ago

grochadc commented 6 years ago

I added an option into the options attribute to pass markdwon-it plugins.

I tried passing the plugins as its own attribute but for some reason the object got converted into a string and all i got was the string '[object Object]'.

Now works like a charm.

Except for the markdown-it-fontawesome plugin which does return HTML but for some reason the Preview wont render it...