vue3-markdown

This is a vue component of markdown editor based on micromark development, which mainly implements the following features.
2,849,567
Install
npm install vue3-markdown
Latest Version:1.2.17
Vue:3
Last Updated:Sep 27, 2025
Links: npm
Maintainer: carmeltop

Vue 3 markodwn

This is a vue component of markdown editor based on micromark development, which mainly implements the following features.

  1. Multi-language support (Currently only support zh and en)
  2. Black and white theme preview
  3. Support KaTex formula input
  4. Custom image upload interface
  5. Integrated github markdown and KaTex styles

Preview

demo

Live demo

Stackblitz

Installation

npm install vue3-markdown

Usage

<script setup>
import { ref } from 'vue'
import { VMarkdownEditor } from 'vue3-markdown'
import 'vue3-markdown/dist/vue3-markdown.css'

const content = ref('')
const handleUpload = (file) => {
  console.log(file)
  return 'https://i.postimg.cc/52qCzTVw/pngwing-com.png'
}
</script>

<template>
  <VMarkdownEditor
    v-model="content"
    locale="en"
    :upload-action="handleUpload"
  />
</template>

or just for view

<script setup>
import { ref } from 'vue'
import { VMarkdownView } from 'vue3-markdown'
import 'vue3-markdown/dist/vue3-markdown.css'

const content = ref('## One of the world's most popular markdown editors')
const mode = ref('light')
</script>

<template>
  <VMarkdownView
    :mode="mode"
    :content="content"
  ></VMarkdownView>
</template>

Publish

npm run build
# update version in `package.json`
# adduser for registry.npmjs.org if not add yet
npm adduser --registry=https://registry.npmjs.org
npm publish --registry=https://registry.npmjs.org

Related Packages

@renovamen/vuepress-plugin-katex

A plugin for adding Katex to VuePress.

1,354 370
vue-stream-markdown

Streaming markdown output, Useful for text streams like LLM outputs.

447,910 243
streamdown-vue

Streamdown-style streaming Markdown renderer for Vue 3/Nuxt 3 with Shiki, KaTeX,...

333,829 53
markdown-it-mdc

Markdown Components (MDC) support for markdown-it

1,264,498 152
vue-katex

Vue plugin for KaTeX

30,224 128

Version History

Version Released Vue License
1.2.17 ^3.5.17
1.2.16 ^3.5.17
1.2.15 ^3.5.17
1.2.14 ^3.5.17
1.2.13 ^3.5.17