File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
packages/vitepress/vitepress-demo-block/src Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ export function applyFooterLinkPlugin(): Plugin {
2121 enforce : 'pre' , // 确保在默认插件前执行
2222
2323 load ( id ) {
24- console . log ( "id" , id ) ;
25-
2624 if ( ! id . endsWith ( '.md' ) ) return
2725
2826 const rawContent = fs . readFileSync ( id , 'utf-8' )
@@ -31,8 +29,6 @@ export function applyFooterLinkPlugin(): Plugin {
3129 const { data : frontmatter } = matter ( rawContent )
3230 const mapPath = id . replace ( process . cwd ( ) + '/docs' , '' )
3331
34- console . log ( "frontmatter" , frontmatter ) ;
35-
3632 if ( ! frontmatter ?. map ?. path || frontmatter ?. source ?. show === false ) {
3733 return
3834 }
Original file line number Diff line number Diff line change 6666 v-html =" decodedHighlightedCode"
6767 :class =" `language-${lang} extra-class`"
6868 ></div ></article
69- ></ClientOnly >
69+ ></ClientOnly >
7070</template >
7171
7272<style src="./demo.less "></style >
You can’t perform that action at this time.
0 commit comments