[ci] format

This commit is contained in:
natemoo-re 2022-08-08 22:35:40 +00:00 committed by fredkbot
parent 4c2ca5352d
commit 7eb54fcb4f

View file

@ -16,7 +16,9 @@ export function rehypeApplyFrontmatterExport(pageFrontmatter: Record<string, any
return function (tree: any, vfile: VFile) { return function (tree: any, vfile: VFile) {
const { frontmatter: injectedFrontmatter } = safelyGetAstroData(vfile.data); const { frontmatter: injectedFrontmatter } = safelyGetAstroData(vfile.data);
const frontmatter = { ...injectedFrontmatter, ...pageFrontmatter }; const frontmatter = { ...injectedFrontmatter, ...pageFrontmatter };
const exportNodes = [jsToTreeNode(`export const ${EXPORT_NAME} = ${JSON.stringify(frontmatter)};`)]; const exportNodes = [
jsToTreeNode(`export const ${EXPORT_NAME} = ${JSON.stringify(frontmatter)};`),
];
tree.children = exportNodes.concat(tree.children); tree.children = exportNodes.concat(tree.children);
}; };
} }