import MavonEditor from 'mavon-editor'
Vue.use(MavonEditor)
...
const markdownIt = MavonEditor.mavonEditor.getMarkdownIt()
import { mavonEditor } from 'mavon-editor'
const markdownIt = mavonEditor.getMarkdownIt()
<mavonEditor ref=md></mavonEditor>
...
const markdownIt = this.refs.md.getMarkdownIt()
设置markdown换行格式必须为行尾添加两空格
// markdownIt通过上述方式获取
markdownIt.set({ breaks: false });