vue-renderer-markdown-monaco

A Vue 3 component that renders Markdown string content as HTML, supporting custom components and advanced markdown features.
1,952 3,033
Install
npm install vue-renderer-markdown-monaco
Latest Version:0.0.4
Vue:3
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: simon_he

vue-renderer-markdown

A Vue 3 component that renders Markdown string content as HTML, supporting custom components and advanced markdown features.

NPM version

Features

  • 📝 Markdown to HTML: Render Markdown string content directly as HTML in your Vue 3 app.
  • 🧩 Custom Components: Support for custom Vue components inside Markdown.
  • ⚡ Advanced Markdown: Supports tables, math, emoji, checkboxes, and more.
  • 📦 TypeScript Support: Full type definitions for props and usage.
  • 🔌 Easy Integration: Plug-and-play with Vite, Vue CLI, or any Vue 3 project.

Install

pnpm add vue-renderer-markdown
# or
npm install vue-renderer-markdown
# or
yarn add vue-renderer-markdown

Usage

<script setup lang="ts">
import MarkdownRender from 'vue-renderer-markdown'

const markdownContent = `
# Hello Vue Markdown

This is **markdown** rendered as HTML!

- Supports lists
- [x] Checkboxes
- :smile: Emoji
`
</script>

<template>
  <MarkdownRender :content="markdownContent" />
</template>

Props

Name Type Required Description
content string ✓ Markdown string to render
nodes BaseNode[] Parsed markdown AST nodes (alternative to content)
customComponents Record<string, any> Custom Vue components for rendering

content 和 nodes 必须至少传递一个。

Advanced

  • Custom Components: Pass your own components via customComponents prop to render custom tags inside markdown.

  • TypeScript: Full type support. Import types as needed:

    import type { MyMarkdownProps } from 'vue-markdown-to-html/dist/types'
    

License

MIT © Simon He

Related Packages

@uivjs/vue-markdown-preview

Markdown component for Vue. The minimal amount of CSS to replicate the GitHub Ma...

22,685 17
kokk

A beautiful way to create a documentation from markdown, and insert a vue compon...

10,142 49
@ashlesss/markstream-vue

Streaming-friendly Vue 3 Markdown renderer for docs sites, AI chat UIs, and larg...

1,121 0
vue-markdown

A Powerful and Highspeed Markdown Parser for Vue

474,899 1,965
@adapttive/vue-markdown

A Powerful and High speed Markdown Parser for Vue

84,327 35

Version History

Version Released Vue License
0.0.4 >=3.0.0 MIT
0.0.3 >=3.0.0 MIT
0.0.2 >=3.0.0 MIT
0.0.1 >=3.0.0 MIT