快速开始
在线尝试
可以直接在 在线尝试 上进行在线尝试。
安装
shell
npm install @wangruichuan/markdown-ast-parser
shell
yarn add @wangruichuan/markdown-ast-parser
shell
pnpm install @wangruichuan/markdown-ast-parser
使用
vue
<script setup>
import {Editor} from '@wangruichuan/markdown-editor'
import "@wangruichuan/markdown-editor/dist/markdown-editor.css"
import {ref} from 'vue'
const markdown = ref("")
</script>
<template>
<div style="height: 500px;" >
<Editor
v-model="markdown"
/>
</div>
</template>