Socket
Socket
Sign inDemoInstall

@swayable/vue-snarkdown

Package Overview
Dependencies
1
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @swayable/vue-snarkdown

Vue component implementing Snarkdown, transforming Markdown into HTML.


Version published
Weekly downloads
60
decreased by-33.33%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc