summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src/frontmatter-injection.ts
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-11-30 10:03:51 -0500
committerGravatar GitHub <noreply@github.com> 2023-11-30 10:03:51 -0500
commitfbf145af8a792ee7334be577fbdf0bba9782b4e7 (patch)
treea5212b8b8f12d734579db8a2bb90dd4c772cba44 /packages/markdown/remark/src/frontmatter-injection.ts
parentff8eadb95d34833baaf3ec7575bf4f293eae97da (diff)
parent05628aaa3c9a3702b59cbf3d0e99abf66df651df (diff)
downloadastro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.tar.gz
astro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.tar.zst
astro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.zip
Merge pull request #9247 from withastro/next
Merge the `next` branch into `main` for the 4.0 release
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 };
- }
- };
-}