npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-markdown-kit

v0.1.1

Published

A small, auditable Markdown preview toolkit for Vue 2.

Readme

Vue Markdown Kit

A small, auditable Markdown preview toolkit for Vue 2. It provides a component-friendly preview API, a framework-independent renderer, and GitHub-style presentation.

Features

  • Vue 2.6 and Vue 2.7 preview component
  • Markdown rendering through markdown-it
  • HTML sanitization through DOMPurify
  • Opt-in, tree-shakeable highlight.js language registration
  • GitHub-style Markdown CSS
  • Image-click and rendered-content events
  • Compatibility and modern package entry points

Install

npm install vue-markdown-kit

Legacy-style usage

Existing preview integrations can keep the same setup pattern and change only the package prefix:

import VMdPreview from 'vue-markdown-kit/lib/preview'
import 'vue-markdown-kit/lib/style/preview.css'

import githubTheme from 'vue-markdown-kit/lib/theme/github.js'
import 'vue-markdown-kit/lib/theme/style/github.css'

import hljs from 'highlight.js/lib/core'
import javascript from 'highlight.js/lib/languages/javascript'

hljs.registerLanguage('javascript', javascript)

VMdPreview.use(githubTheme, {
  Hljs: hljs,
})

export default {
  components: {
    'md-preview': VMdPreview,
  },
}
<md-preview :text="markdown" />

Modern entry points

import { VMdPreview, githubTheme } from 'vue-markdown-kit'
import 'vue-markdown-kit/style/preview.css'
import 'vue-markdown-kit/theme/style/github.css'

VMdPreview.use(githubTheme)

The framework-independent renderer can also be used directly:

import {
  createMarkdownRenderer,
  sanitizeHtml,
} from 'vue-markdown-kit/core'

const parser = createMarkdownRenderer()
const safeHtml = sanitizeHtml(parser.render('# Hello'))

Preview props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | text | string | '' | Markdown source | | theme | object | undefined | Per-instance theme plugin or theme config | | tabSize | number | 2 | CSS tab size | | scrollContainer | function | () => window | Scroll target | | top | number | 0 | Scroll offset | | sanitizeOptions | object | {} | Additional DOMPurify options |

Events

  • change(text, html) after Markdown is rendered and sanitized.
  • image-click(images, index) when a rendered image is clicked.

Compatibility scope

Version 0.1 targets the preview APIs commonly required by Vue 2 applications. It does not yet provide an editor component.

Security

Raw HTML is enabled for compatibility, then sanitized as the final rendering step. Applications that do not need raw HTML can pass html: false when creating a custom renderer. Keep all runtime dependencies updated and apply an application-level Markdown input length limit.

License

MIT. See LICENSE and NOTICE.md.