Editing and Previewing Markdown In Vue.js

Editing and Previewing Markdown In Vue.js

Editing and Previewing Markdown In Vue.js. A Vue.js Component for editing and previewing markdown using Vuetify.js and command line rendering utility.

A Vue.js Component for editing and previewing markdown using Vuetify.js and command line rendering utility.


npm install vuetify-markdown-editor

Since this component is based on Vuetify, it is required to install and configure Vuetify. For installing Vuetify, please visit https://vuetifyjs.com/en/getting-started/quick-start.

Command line utility

This package also provides a command line utility to render markdown files.

Install globally:

npm install -g vuetify-markdown-editor

Or install locally and use npx to run:

npm install vuetify-markdown-editor
npx render-cli input.md [output.html]


render-cli input.md [output.html]

To use the rendered html, remember to add css files for Katex and highlight.js:

    href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"


  • Solo and inline mode
  • Editor-only and Editor-Preview mode
  • Code highlighting
  • Emoji picking
  • Math formula (use \\[ and \\] for formula block, and \\( and \\) for inline formula)
  • Image uploading and previewing (to use uploaded image in markdown, use the filename as the link)


This package can be used in Node.js module:


import { Editor } from 'vuetify-markdown-editor';

export default {
  name: 'app',
  components: {
  data() {
    return {
      text: ''
  mounted() {
    // Access properties or methods using $refs
    // this.$refs.editor.upload();

    // Dark theme
    //this.$vuetify.theme.dark = true;


Prop Default Description
value '' String that binds to the textarea
mode 'Rendered' When set to 'Source', the preview will display html source code
outline false The border will be outlined instead of card style
color undefined The outline and icon's color
preview true Add the responsive preview
nativeEmoji false Use native emoji instead of pictures
emoji true Enable emoji input
image true Enable image upload
hint '' Add description at the bottom
fileTarget / Image upload target uri
fileFilter file => file.type.startsWith('image') Allow only specific files. Return true to allow, false to reject


Method Description
upload() Start or resume uploading all files in list
pause() Pause uploading
resume() Resume uploading
focus() Focus on the editor


Property Description
files Get all files in list in FlowFile format


Clone this repository, and then run:

npm install
npm run serve

Then open http://localhost:8080 in browser to test.


Solo mode: <Editor v-model="text" />

This is image title

Outline mode: <Editor outline v-model="text" />

This is image title

Dark mode: this.$vuetify.theme.dark = true;

This is image title


This is image title




vuejs javascript Markdown vue-js

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Collection of 10 Vue Markdown Component for Vue.js App in 2020

Markdown is a way to style text on the web. The 10 Vue markdown components below will give you a clear view.

Markdown editor using codemirror and previewer showdown for Vue.js

A markdown editor using codemirror and previewer using showdown for Vue.js.Showdown is a Javascript Markdown to HTML converter, based on the original works by John Gruber. Showdown can be used client side (in the browser) or server side (with NodeJs).

Vue Markdown Editor component for Vue.js

Markdown Editor component for Vue.js. v-markdown-editor is a simple Markdown editor component for Vue wrapper codemirror

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.