mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(plugin-auto-frontmatter): modified formatter
This commit is contained in:
parent
6bdcd25730
commit
3d31767dc0
@ -48,7 +48,7 @@ export const autoFrontmatterPlugin = ({
|
||||
const { data, content } = grayMatter(file.content)
|
||||
|
||||
for (const key in formatter) {
|
||||
const value = await formatMarkdown[key](data[key], file, data)
|
||||
const value = await formatter[key](data[key], file, data)
|
||||
data[key] = value ?? data[key]
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user