package
The vue lib for markdown-it
npm install markdown-it-vueGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
The vue lib for markdown-it.
http://www.aqcoder.com/markdown
npm install markdown-it-vueyarn install && yarn devinternal plugin list:
use options property to sepcial the options of markdow-it and markdown-it-plugins.
<markdown-it-vue class="md-body" :content="content" :options="options" />options: {
markdownIt: {
linkify: true
},
linkAttributes: {
attrs: {
target: '_blank',
rel: 'noopener'
}
}
}more markdown-it options see https://markdown-it.github.io/markdown-it/.
amd default plugins options:
{
linkAttributes: {
attrs: {
target: '_blank',
rel: 'noopener'
}
},
katex: {
throwOnError: false,
errorColor: '#cc0000'
},
icons: 'font-awesome',
githubToc: {
tocFirstLevel: 2,
tocLastLevel: 3,
tocClassName: 'toc',
anchorLinkSymbol: '',
anchorLinkSpace: false,
anchorClassName:
it can add your plugin to markdown-it-vue by the use method.
this.$refs.myMarkdownItVue.use(MyMarkdownItPlugin)PR for you lang wich you want.


use echarts.simple to reduce the bundle size.
markdown-it-vue-light remove the mermaid chart to reduce the bundle size.
https://github.com/ravenq/markdown-it-vue/issues/24
for a small bundle size, it better to import the markdown-it-vue-light.
<template>
<div>
<markdown-it-vue class="md-body" :content="content" />
</div>
</template>
<script>
import MarkdownItVue from 'markdown-it-vue'
import 'markdown-it-vue/dist/markdown-it-vue.css'
export default {
components: {
MarkdownItVue
},
data() {
return {
content: '# your markdown content'
}
}
}
</script>the light model.
<template>
<div>
<markdown-it-vue-light class="md-body" :content="content" />
</div>
</template>
<script>
import MarkdownItVueLight from 'markdown-it-vue/dist/markdown-it-vue-light.umd.min.js'
import 'markdown-it-vue/dist/markdown-it-vue-light.css'
export default {
components: {
MarkdownItVueLight
},
data() {
return {
content: '# your markdown content'
}
}
}
</script>
Estimated unpacked size across 65 packages.
298.1 MB+
Includes dependencies.
24 direct · 15 outdated
^2.6.12
3.5.45
^5.1.0
6.1.0
^8.9.2
12.3.0
^12.0.6
15.0.3
^1.15.0
1.18.1
2.0.0
^1.0.0
2.0.0
^1.0.4
2.0.0
^3.0.1
4.0.0
^2.0.0
3.1.0
^0.2.0
0.2.0
^0.2.0
0.2.2
^4.0.0
5.9.0
^2.1.0
4.0.0
^3.0.2
4.0.0
^3.0.0
4.0.0
^3.2.4
3.2.4
^0.1.1
0.1.1
^2.1.1
2.1.1
^2.6.0
2.6.0
4.2.0
4.0.1