Package Exports
- vue3-markdown
- vue3-markdown/dist/style.css
Readme
Vue 3 markodwn
This is a vue component of markdown editor based on micromark development, which mainly implements the following features.
- multi-language support
- black and white theme preview
- support KaTex formula input
- ustom image upload interface
- GFM style
Preview
live demo
Installation
npm install vue3-markdown
Usage
<script setup>
import { ref } from 'vue'
import { VMarkdownEditor } from 'vue3-markdown'
import 'vue3-markdown/dist/style.css'
const content = ref('')
const handleUpload = (file) => {
console.log(file)
return 'https://i.postimg.cc/52qCzTVw/pngwing-com.png'
}
</script>
<template>
<VMarkdownEditor
v-model="content"
locale="en"
:upload-action="handleUpload"
/>
</template>