Markdown For Vue – VM Markdown

Markdown For Vue – VM Markdown

Yet another themeable and customizable markdown editor for Vue.js application.

refactoring

Install

npm install --save vm-markdown

Usage

import VmMarkdown from 'vm-markdown'
export default {
  ...
  components: {
  	VmMarkdown
  },
  methods: {
  	showHtml (html) {
      // get html string here
    }
  }
  ...
}
<VmMarkdown theme="default" //dark, green, gray, princess 
            width="1000px" 
            height="600px" 
            v-on:gethtml="showHtml"
            :defaultText="intro">
</VmMarkdown>

License

MIT

Github Repository

Tags: #VueJs