0.0.4 • Published 12 months ago

vite-plugin-vue-markd v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

vite-plugin-vue-markd

安装

npm i vite-plugin-vue-markd highlight.js

使用

引入插件

import vueMdPlugin from 'vite-plugin-vue-markd'

// add to vite plugins
plugins: [
    vueMdPlugin(),
    vue({
        include: [/\.vue$/, /\.md$/],
    })
]

页面使用

// main.js
'highlight.js/styles/github.css' // 代码块着色

// 组件
<template>
    <xx></xx>
</template>

import xx from '*.md'

components: {
    xx
}
0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago