fix(next): title is displayed after the separator (#239)

pull/286/head
Rizumu Ayaka 2023-12-22 19:49:08 +08:00
parent ed3588f658
commit ae923ada10
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}