From 9674cf56c561af8f13def0266b0539507a80000d Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Thu, 22 Dec 2022 17:17:53 -0500 Subject: [PATCH] [Content Collections] Stray console.log snuck in! (#5668) * fix: stray console.log * chore: changeset --- .changeset/five-apes-heal.md | 5 +++++ .../markdown/remark/src/remark-content-rel-image-error.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/five-apes-heal.md diff --git a/.changeset/five-apes-heal.md b/.changeset/five-apes-heal.md new file mode 100644 index 000000000..800f0c842 --- /dev/null +++ b/.changeset/five-apes-heal.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Remove stray `console.log` from content collections error message diff --git a/packages/markdown/remark/src/remark-content-rel-image-error.ts b/packages/markdown/remark/src/remark-content-rel-image-error.ts index 0704ebdd1..1a0870c22 100644 --- a/packages/markdown/remark/src/remark-content-rel-image-error.ts +++ b/packages/markdown/remark/src/remark-content-rel-image-error.ts @@ -15,7 +15,6 @@ export default function toRemarkContentRelImageError({ contentDir }: { contentDi const relImagePaths = new Set(); visit(tree, 'image', function raiseError(node: Image) { - console.log(node.url); if (isRelativePath(node.url)) { relImagePaths.add(node.url); }