Skip to content

Commit

Permalink
Fix [Object AsyncGenerator] logging for Markdoc components (withastro…
Browse files Browse the repository at this point in the history
…#7307)

* Revert "Bug 6672 (withastro#7062)"

This reverts commit cf62134.

* chore: remove unused test

* chore: changeset
  • Loading branch information
bholmesdev authored and natemoo-re committed Jun 6, 2023
1 parent 773126e commit 2d37fc8
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 127 deletions.
6 changes: 6 additions & 0 deletions .changeset/nice-falcons-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'astro': patch
'@astrojs/mdx': patch
---

Fix [Object AsyncGenerator] appearing in markup for Markdoc documents
3 changes: 0 additions & 3 deletions packages/astro/src/runtime/server/render/astro/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export class AstroComponentInstance {
value = await value;
}
if (isHeadAndContent(value)) {
if (this.result.extraHead.length === 0 && value.head) {
yield renderChild(value.head);
}
yield* value.content;
} else {
yield* renderChild(value);
Expand Down
49 changes: 0 additions & 49 deletions packages/integrations/mdx/test/astro-content-css.test.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 2d37fc8

Please sign in to comment.