3.0.4 • Published 2 months ago

@swayable/vue-snarkdown v3.0.4

Weekly downloads
45
License
MIT
Repository
github
Last release
2 months ago

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

3.0.4

2 months ago

3.0.3

2 months ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

2.0.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago