@swayable/vue-snarkdown

v1.0.0
<h1 align="center"> Vue Snarkdown </h1>

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

npm i @swayable/[email protected]

Metadata

  • MIT
  • Whatever
  • Swayable
  • released 3/6/2019

Downloads