@swayable/vue-snarkdown

3.0.4 • Public • Published

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

Package Sidebar

Install

npm i @swayable/vue-snarkdown

Weekly Downloads

34

Version

3.0.4

License

MIT

Unpacked Size

7.98 kB

Total Files

6

Last publish

Collaborators

  • tannerwelsh
  • jdbdnz