2021
12-16
12-16
使用Vite2+Vue3渲染Markdown文档的方法实践
目录自定义Vite插件使用vite-plugin-markdownImportFrontMatterattributesImportcompiledHTML(Mode.HTML)ImportToCmetadata(Mode.TOC)ImportasaReactcomponent(Mode.REACT)ImportasaVuecomponent(Mode.VUE)写在最后大部分使用Vite2的开发者遇到的一个问题,就是文档里并没有相关支持Markdown的介绍,那么如果想要在Vite项目中支持Markdown引入并渲染,需要怎么操作?这篇文章将介绍两种方式。自定义...
继续阅读 >