wangEditor markdown plugin
npm install @wangeditor-next/plugin-markdown在 wangEditor-next 中使用基本的 markdown 语法。
- 标题
- #
- ##
- ###
- ####
- #####
- 列表 - + *
- 引用 >
- 分割线 ---
- 代码块 ``js
`sh`
yarn add @wangeditor-next/plugin-markdown
要在创建编辑器之前注册,且只能注册一次,不可重复注册。
`js
import { Boot } from '@wangeditor-next/editor'
import markdownModule from '@wangeditor-next/plugin-markdown'
Boot.registerModule(markdownModule)
// Then create editor and toolbar
``