fix(next): title is displayed after the separator (#239)
parent
ed3588f658
commit
ae923ada10
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue