mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
10 lines
208 B
TypeScript
10 lines
208 B
TypeScript
|
import type { VFile } from 'vfile';
|
||
|
|
||
|
export function remarkInitializeAstroData() {
|
||
|
return function (tree: any, vfile: VFile) {
|
||
|
if (!vfile.data.astro) {
|
||
|
vfile.data.astro = { frontmatter: {} };
|
||
|
}
|
||
|
};
|
||
|
}
|