summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src/frontmatter-injection.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown/remark/src/frontmatter-injection.ts')
-rw-r--r--packages/markdown/remark/src/frontmatter-injection.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/packages/markdown/remark/src/frontmatter-injection.ts b/packages/markdown/remark/src/frontmatter-injection.ts
index 4828873fd..91b98ebcb 100644
--- a/packages/markdown/remark/src/frontmatter-injection.ts
+++ b/packages/markdown/remark/src/frontmatter-injection.ts
@@ -32,19 +32,3 @@ export function setVfileFrontmatter(vfile: VFile, frontmatter: Record<string, an
vfile.data.astro ??= {};
(vfile.data.astro as any).frontmatter = frontmatter;
}
-
-/**
- * @deprecated Use `setVfileFrontmatter` instead
- */
-export function toRemarkInitializeAstroData({
- userFrontmatter,
-}: {
- userFrontmatter: Record<string, any>;
-}) {
- return () =>
- function (tree: any, vfile: VFile) {
- if (!vfile.data.astro) {
- vfile.data.astro = { frontmatter: userFrontmatter };
- }
- };
-}