1. 安装
yarn add md-editor-v3
2.引入使用
引入
import 'md-editor-v3/lib/style.css'
import { MdEditor } from 'md-editor-v3'
使用
<template>
<MdEditor v-model="mdText"></MdEditor>
</template>
3.数据
数据为md文件的内容,如:
const mdText = `## hello word!`
显示为:
hello word!
4.项目地址和文档
项目地址
文档说明