Skip to content

Commit

Permalink
fix: header cannot add
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Dec 10, 2023
1 parent 4ecf63f commit 939de57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/plugins/markdownTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export function MarkdownTransform(): Plugin {
return null

id = relative(ROOT, id)

if (id == 'index.md')
return null

Expand All @@ -24,7 +23,7 @@ export function MarkdownTransform(): Plugin {
}


const pageHeaderTemplate = (code: string) => code.replace(/(---\n\n)/, `$1
const pageHeaderTemplate = (code: string) => code.replace(/(^---$(\s|\S)+^---$)/m, `$1
# {{ $frontmatter.title }}
Expand Down

0 comments on commit 939de57

Please sign in to comment.