@halobear/@halobear/vue-markdown-it
安装
yarn add @halobear/vue-markdown-it
使用
<template>
<div class="test-container">
<h2 class="title">markdown编辑器</h2>
<markdown-editor class="editor-content" type="markdown" v-model="text"></markdown-editor>
</div>
</template>
<script>
import markdownEditor from '@halobear/vue-markdown-it'
import text from './text'
export default {
components: {
markdownEditor,
},
data() {
return {
text,
}
},
methods: {},
}
</script>