Vue3 首选 Markdown 编辑器:md-editor-v3 预览区主题 作者:马育民 • 2026-05-29 16:40 • 阅读:10000 # 介绍 md-editor-v3 的预览区主题由 `previewTheme` 控制,内置 6 套主题,支持自定义。 # 内置预览主题 - **default**:默认,白底、常规间距。 - **github**:GitHub 风格,白底、代码块灰色。 - **vuepress**:VuePress 文档风,清爽、偏窄边距。**(推荐)** - **cyanosis**:青蓝色调,清新感。 - **mk-cute**:可爱风,柔和配色。 - **smart-blue**:商务蓝,正式感。 ### default 主题 [](https://www.malaoshi.top/upload/0/0/1GW3OqwhShCR.png) ### github 主题 [](https://www.malaoshi.top/upload/0/0/1GW3OqwsQ56V.png) ### vuepress 主题 [](https://www.malaoshi.top/upload/0/0/1GW3Oqx3zsuY.png) ### smart-blue 主题 [](https://www.malaoshi.top/upload/0/0/1GW3OqxH2Hzc.png) # 基础用法 ```vue codeTheme="github" /> ``` # 动态切换主题 ```vue default github vuepress cyanosis mk-cute smart-blue ``` # 仅预览模式(MdPreview) ```vue codeTheme="github" /> ``` 原文出处:http://malaoshi.top/show_1GW3Oqzn5Vvm.html