1. 所需依赖 1. github-markdown-css 2. highlight.js 3. vue-markdown-loader 4. vue-template-compiler npm i github-markdown-css highlight.js vue-markdown-loader vue-template-compiler -D vue.config.js配置 chainWebpack(config) { config.module.rule('md') .test