Skip to content

Commit

Permalink
Merge pull request #1 from LittleSound/fix/header-cannot-add
Browse files Browse the repository at this point in the history
fix: header cannot add
  • Loading branch information
Cryolitia committed Dec 10, 2023
2 parents 4ecf63f + 939de57 commit 077ec22
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 077ec22

Please sign in to comment.