Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swayable/vue-snarkdown

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swayable/vue-snarkdown

Vue component implementing Snarkdown, transforming Markdown into HTML.

  • 3.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
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

Package last updated on 21 Feb 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc