Vue Snarkdown
Single dependency Vue component wrapping the tiny Markdown parser Snarkdown
Now Vue 3 compatible!
(For Vue 2, use version 2.0.0)
Installation
npm install @swayable/vue-snarkdown
Usage
this is easy to use
.
<template>
<Snarkdown>
_this_ is **easy** to `use`.
</Snarkdown>
</template>
<script>
import Snarkdown from '@swayable/vue-snarkdown'
export default {
components: {
Snarkdown,
},
}
</script>
Reactivity
If markdown will change during your component's lifespan,
you must use the markdown
prop instead of the default slot.
This is because $slots
is not reactive.
<Snarkdown markdown='_this_ is **easy** to `use`.'>
License
MIT