pnpm + monorepo
TypeScript
monaco-editor
- markdown-ast-parser : markdown 解析器
- vue-markdown-editor : 基于 monaco-editor 的 vue 组件
- markdown-editor-doc : 基于 vue-markdown-editor 的 doc 文档
可以直接在 在线尝试 上进行在线尝试。
npm install @wangruichuan/markdown-ast-parser
yarn add @wangruichuan/markdown-ast-parser
pnpm install @wangruichuan/markdown-ast-parser
<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>