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 {
21
21
enforce : 'pre' , // 确保在默认插件前执行
22
22
23
23
load ( id ) {
24
- console . log ( "id" , id ) ;
25
-
26
24
if ( ! id . endsWith ( '.md' ) ) return
27
25
28
26
const rawContent = fs . readFileSync ( id , 'utf-8' )
@@ -31,8 +29,6 @@ export function applyFooterLinkPlugin(): Plugin {
31
29
const { data : frontmatter } = matter ( rawContent )
32
30
const mapPath = id . replace ( process . cwd ( ) + '/docs' , '' )
33
31
34
- console . log ( "frontmatter" , frontmatter ) ;
35
-
36
32
if ( ! frontmatter ?. map ?. path || frontmatter ?. source ?. show === false ) {
37
33
return
38
34
}
Original file line number Diff line number Diff line change 66
66
v-html =" decodedHighlightedCode"
67
67
:class =" `language-${lang} extra-class`"
68
68
></div ></article
69
- ></ClientOnly >
69
+ ></ClientOnly >
70
70
</template >
71
71
72
72
<style src="./demo.less "></style >
You can’t perform that action at this time.
0 commit comments