v-md-editor
v1.0.6
Published
A markdown editor built on Vue
Downloads
50
Maintainers
Readme
Links
Communication
qq group: 798884474
Install
# use npm
npm i @kangc/v-md-editor -S
# use yarn
yarn add @kangc/v-md-editor
Quick Start
import Vue from 'vue';
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
VueMarkdownEditor.use(vuepressTheme);
Vue.use(VueMarkdownEditor);
Usage
<template>
<v-md-editor v-model="text" height="400px"></v-md-editor>
</template>
<script>
export default {
data() {
return {
text: '',
};
},
};
</script>
Refrence
- ElementUi Utils clickoutside
- ElementUi Utils resize-event
- ElementUi Utils scrollbar-width
- ElementUi Scrollbar Component
- vuepress-plugin-container
- vuepress markdown preWrapper
- vuepress markdown link
- markdown-it-katex
- markdown-it-table-of-contents
- markdown-it-task-lists