Skip to content

Commit

Permalink
fix(next): title is displayed after the separator (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound authored Dec 22, 2023
1 parent 8c242bf commit 49beb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/plugins/markdownTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function MarkdownTransform(): Plugin {
}


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

0 comments on commit 49beb46

Please sign in to comment.