markdown-it an as alternative #10
MichaelCurrin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@adapttive just so you know, I found a lighter alternative to vue-markdown, so I'll be less involved. And perhaps you can also come up with a custom solution like mine for your project.
Besides the network issue #9, I also had an issue that no TypeScript types are available for the fork. I had prompt something like
npm i @types/adapttive__vue-markdown
but wasn't available. And the original@types/vue-markdown
is going to drift from this fork so I can't use that in the long term.I just need the
markdown-it
part - it is not Vue-related but easily to use in Vue and it works in TypeScript.See https://github.com/markdown-it/markdown-it
And demo https://markdown-it.github.io/
That uses a safe highlight.js already and allows the markdown plugins (which vue-markdown also locks) - see package.json
So I've actually made my own
Markdown.vue
component that relies onmarkdown-it
packageMarkdown.vue
I use it like this:
Help.vue
Beta Was this translation helpful? Give feedback.
All reactions