You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i vitepress-demo-plugin -D
# or
yarn add vitepress-demo-plugin -D
# or
pnpm add vitepress-demo-plugin -D
🌈 使用
引入插件
import{defineConfig}from'vitepress';import{vitepressDemoPlugin}from'vitepress-demo-plugin';importpathfrom'path';exportdefaultdefineConfig({// other configs...markdown: {config(md){md.use(vitepressDemoPlugin);},},});
首个支持 vue/react/html 等多种语法 demo 展示的 vitepress 插件,并支持一键跳转至 stackblitz 及 codesandbox 等三方平台去在线编辑。十分适合构建组件库站点的场景。
官方文档:https://vitepress-demo.fe-dev.cn/
源码仓库:https://github.com/zh-lx/vitepress-demo-plugin
🚀 安装
🌈 使用
现在你可以在 markdown 中通过
<demo />
组件展示你的 demo 了:效果预览,在线查看
The text was updated successfully, but these errors were encountered: