fix frontmatter parse flag
This commit is contained in:
@@ -20,7 +20,7 @@ export function process_frontmatter(raw_document: string, parse = true) {
|
||||
|
||||
const formatter_yaml = raw_document.slice(3, end_index);
|
||||
const document = raw_document.slice(end_index + 4);
|
||||
const frontmatter = parse ? formatter_yaml : yaml.parse(formatter_yaml);
|
||||
const frontmatter = parse ? yaml.parse(formatter_yaml) : formatter_yaml;
|
||||
|
||||
return { frontmatter, document };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user