vue-markdown-editor

A Markdown editor component for Vue that renders in place without the need for a preview pane. This is the component that powers Octo.

Features

Dark Theme

Works great with dark themes. Light theme coming soon! ?

Inline Markdown Rendering

All Markdown formatting is rendered in place. This eliminates the need for a preview pane while keeping your document in plain text. Feel free to copy and paste your Markdown into or out of this editor!

Automatic Syntax Highlighting

Code blocks are automatically highlighted based on the tagged language.

Install and Use

Install

npm install --save @voraciousdev/vue-markdown-editor
Shell

Use

<template>
  <MarkdownEditor v-model="markdown" />
</template>

<script>
import MarkdownEditor from '@voraciousdev/vue-markdown-editor'

export default {
  name: 'App',
  components: {
    MarkdownEditor,
  },
  data() {
    return {
      markdown: '# Hello, World!'
    }
  },
}
</script>
Vue

Contribute

This library uses yarn.

Install dependencies

yarn install
Shell

Compile and hot-reload for development

yarn serve
Shell

Compile for production

yarn build
Shell

Run the unit tests

yarn test:unit
Shell

Lint and fix files

yarn lint
Shell

GitHub

Latest commit to the undefined branch on unknown
Download as zip