File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22## 介绍
33基于Vuepress2的插件,它可以帮助你在编写组件库文档的时候增加示例代码和预览。
44
5+ 查看文档和示例:[ https://demo-block.seepine.com ] ( https://demo-block.seepine.com ) 或克隆项目运行
6+
57## 安装
68
79### 安装 VuePress
Original file line number Diff line number Diff line change 11{
22 "name" : " vuepress2-plugin-demo-block" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " Vuepress2 plugin for demo block support vue3." ,
55 "main" : " src/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module.exports = (options) => {
2828 if ( tokens [ idx ] . nesting === 1 ) {
2929 const description = m && m . length > 1 ? m [ 1 ] : "" ;
3030 const sourceFileToken = tokens [ idx + 2 ] ;
31- const sourceFile = sourceFileToken . children ?. [ 0 ] . content ?? "" ;
31+ const sourceFile = sourceFileToken . children [ 0 ] . content ?? "" ;
3232 let source = "" ;
3333 if ( sourceFileToken . type === "inline" ) {
3434 source = fs . readFileSync (
You can’t perform that action at this time.
0 commit comments