1.1.9 • Published 12 months ago
vue3-markdown v1.1.9
Vue 3 markodwn
This is a vue component of markdown editor based on micromark development, which mainly implements the following features.
- Multi-language support (Currently only support zh and en)
- Black and white theme preview
- Support KaTex formula input
- Custom image upload interface
- Integrated github markdown and KaTex styles
Live demo
Reproduction
Preview
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>
or just for view
<script setup>
import { ref } from 'vue'
import { VMarkdownView } from 'vue3-markdown'
import 'vue3-markdown/dist/style.css'
const content = ref('## One of the world's most popular markdown editors')
const mode = ref('light')
</script>
<template>
<VMarkdownView
:mode="mode"
:content="content"
></VMarkdownView>
</template>
Publish
npm run build
# update version in `package.json`
# adduser for registry.npmjs.org if not add yet
npm adduser --registry=https://registry.npmjs.org
npm publish --registry=https://registry.npmjs.org
1.1.9
12 months ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago