# vue-markdown-editor **Repository Path**: ckang1229/vue-markdown-editor ## Basic Information - **Project Name**: vue-markdown-editor - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 3 - **Created**: 2020-07-30 - **Last Updated**: 2024-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Markdown Editor built on Vue

Downloads Version License

## Links - [Demo](https://code-farmer-i.github.io/vue-markdown-editor/examples/base-editor.html) - [Documentation](https://code-farmer-i.github.io/vue-markdown-editor/) - [中文文档](http://ckang1229.gitee.io/vue-markdown-editor/zh/) - [Changelog](https://code-farmer-i.github.io/vue-markdown-editor/changelog.html) ## Communication qq group: 798884474 ## Install ```bash # Vue 2 use npm npm i @kangc/v-md-editor -S # Vue 2 use yarn yarn add @kangc/v-md-editor # Vue 3 use npm npm i @kangc/v-md-editor@next -S # Vue 3 use yarn yarn add @kangc/v-md-editor@next ``` ## Quick Start ```js 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'; // Prism import Prism from 'prismjs'; // highlight code import 'prismjs/components/prism-json'; VueMarkdownEditor.use(vuepressTheme, { Prism, }); Vue.use(VueMarkdownEditor); ``` ## Quick Start In Vue3 ```js import { createApp } from 'vue'; import VMdEditor 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'; // Prism import Prism from 'prismjs'; // highlight code import 'prismjs/components/prism-json'; VMdEditor.use(vuepressTheme, { Prism, }); const app = createApp(/*...*/); app.use(VMdEditor); ``` ## Usage ```html ``` ## Usage Composition Api ```html ``` ## Sponsor Paypal [PayPal.Me](https://paypal.me/codefarmeri?locale.x=zh_XC) Alipay 支付宝 WeChat Pay 微信 ## Refrence - [ElementUi Utils clickoutside](https://github.com/ElemeFE/element/blob/dev/src/utils/clickoutside.js) - [ElementUi Utils resize-event](https://github.com/ElemeFE/element/blob/dev/src/utils/resize-event.js) - [ElementUi Utils scrollbar-width](https://github.com/ElemeFE/element/blob/dev/src/utils/scrollbar-width.js) - [ElementUi Scrollbar Component](https://github.com/ElemeFE/element/tree/dev/packages/scrollbar) - [vuepress-plugin-container](https://github.com/vuepress/vuepress-community/blob/master/packages/vuepress-plugin-container/src/markdown-it-container.ts) - [vuepress markdown preWrapper](https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/markdown/lib/preWrapper.js) - [vuepress markdown link](https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/markdown/lib/link.js) - [markdown-it-katex](https://github.com/waylonflinn/markdown-it-katex/blob/master/index.js) - [markdown-it-table-of-contents](https://github.com/Oktavilla/markdown-it-table-of-contents/blob/master/index.js) - [markdown-it-task-lists](https://github.com/revin/markdown-it-task-lists/blob/master/index.js) ## License [MIT](https://github.com/code-farmer-i/vue-markdown-editor/blob/dev/LICENSE)