md-editor-v3

Markdown editor for vue3, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.1
- 5.5.0
- 5.4.5
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.1
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.21.3
- 4.21.2
- 4.21.1
- 4.21.0
- 4.20.4
- 4.20.3
- 4.20.2
- 4.20.1
- 4.20.0
- 4.19.2
- 4.19.1
- 4.19.0
- 4.18.1
- 4.18.0
- 4.17.4
- 4.17.3
- 4.17.2
- 4.17.1
- 4.17.0
- 4.16.9
- 4.16.8
- 4.16.7
- 4.16.6
- 4.16.5
- 4.16.4
- 4.16.3
- 4.16.1
- 4.16.0
- 4.15.6
- 4.15.5
- 4.15.4
- 4.15.3
- 4.15.2
- 4.15.1
- 4.15.0
- 4.14.1
- 4.14.0
- 4.13.5
- 4.13.4
- 4.13.3
- 4.13.2
- 4.13.1
- 4.13.0
- 4.12.4
- 4.12.3
- 4.12.2
- 4.12.1
- 4.12.0
- 4.11.3
- 4.11.2
- 4.11.1
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.3
- 4.8.2
- 4.8.1
- 4.8.0
- 4.7.0
- 4.6.2
- 4.6.1
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.11.3
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.0
- 2.9.3
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4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-beta.2
- 4.12.0-beta.1
- 4.12.0-beta.0
- 4.11.1-beta.0
- 4.11.0-beta.2
- 4.11.0-beta.1
- 4.11.0-beta.0
- 4.10.0-beta.0
- 4.9.0-beta.0
- 4.8.3-beta.0
- 4.8.0-beta.1
- 4.8.0-beta.0
- 4.7.1-beta.0
- 4.7.0-beta.1
- 4.7.0-beta.0
- 4.6.2-beta.2
- 4.6.2-beta.1
- 4.6.2-beta.0
- 4.6.0-beta.0
- 4.5.0-beta.1
- 4.5.0-beta.0
- 4.3.0-beta.7
- 4.3.0-beta.6
- 4.3.0-beta.5
- 4.3.0-beta.4
- 4.3.0-beta.3
- 4.3.0-beta.2
- 4.3.0-beta.1
- 4.3.0-beta.0
- 4.2.1-beta.1
- 4.2.1-beta.0
- 4.2.0-beta.1
- 4.2.0-beta.0
- 4.1.0-beta.1
- 4.1.0-beta.0
- 4.0.4-beta.0
- 4.0.3-beta.0
- 4.0.0-beta.0
- 3.0.0-beta.5
- 3.0.0-beta.4
- 3.0.0-beta.2
- 3.0.0-beta.1
- 3.0.0-beta.0
- 2.10.0-beta.2
- 2.10.0-beta.1
- 2.9.0-beta.5
- 2.9.0-beta.4
- 2.9.0-beta.3
- 2.9.0-beta.2
- 2.9.0-beta.1
- 2.9.0-beta.0
- 2.8.0-beta.0
- 2.7.3-beta.0
- 2.7.0-beta.1
- 2.7.0-beta.0
- 2.6.0-beta.0
- 2.5.0-beta.1
- 2.5.0-beta.0
- 2.4.0-beta.2
- 2.4.0-beta.1
- 2.4.0-beta.0
- 2.3.0-beta.1
- 2.3.0-beta.0
- 2.2.1-beta.0
- 2.2.0-beta.2
- 2.2.0-beta.1
- 2.2.0-beta.0
- 2.1.2-beta.2
- 2.1.2-beta.1
- 2.1.2-beta.0
- 2.1.0-beta.0
- 2.0.1-beta.0
- 2.0.0-beta.11
- 2.0.0-beta.10
- 2.0.0-beta.9
- 2.0.0-beta.8
- 2.0.0-beta.7
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 2.0.0-beta.0
🎄 md-editor-v3
English | 中文
Markdown editor for vue3, developed in jsx
and typescript
.
Documentation and example: Go
The same series editor for react: md-editor-rt
⭐️ Features
- Toolbar, screenfull or screenfull in web pages and so on.
- Themes, Built-in default and dark themes.
- Shortcut key for editor.
- Beautify your content by
prettier
(only for markdown content, not the code and other text). - Multi-language, build-in Chinese and English(default: Chinese).
- Upload picture, paste or clip the picture and upload it.
- Render article directly(no editor, no event listener, only preview of content).
- Theme of preview,
default
,vuepress
,github
,cyanosis
,mk-cute
,smart-blue
styles(not identical). It can be customized also(Refer to example page). mermaid
(>=1.8.0),katex
mathematical formula(>=1.9.0).- Customize the toolbar as you like.
- On-demand Import(>=4.0.0).
🗺 Preview
Default theme | Dark theme | Preview only |
---|---|---|
![]() |
![]() |
![]() |
Inputing prompt and mark, emoji extensions
📦 Install
yarn add md-editor-v3
Use existing extension of language and theme, such as Japanese
yarn add @vavt/cm-extension
Use existing components of toolbar, such as exporting content as PDF
yarn add @vavt/v3-extension
For more ways to use or contribute, please refer to: md-editor-extension
💡 Usage
When using server-side rendering, make sure to set editorId
to a constant value.
Starting from 4.0.0
, internal components can be imported on-demand.
✍🏻 Display Editor
<template>
<MdEditor v-model="text" />
</template>
<script setup>
import { ref } from 'vue';
import { MdEditor } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
const text = ref('# Hello Editor');
</script>
📖 Preview Only
<template>
<MdPreview :id="id" :modelValue="text" />
<MdCatalog :editorId="id" :scrollElement="scrollElement" />
</template>
<script setup>
import { ref } from 'vue';
import { MdPreview, MdCatalog } from 'md-editor-v3';
import 'md-editor-v3/lib/preview.css';
const id = 'preview-only';
const text = ref('# Hello Editor');
const scrollElement = document.documentElement;
</script>
When using server-side rendering, scrollElement
should be of string type, eg: html
, body
, #id
, .class
.
For more usage, please visit the document.