Skip to content

Commit

Permalink
Fix [Object AsyncGenerator] logging for Markdoc components (#7307)
Browse files Browse the repository at this point in the history
* Revert "Bug 6672 (#7062)"

This reverts commit cf62134.

* chore: remove unused test

* chore: changeset
  • Loading branch information
bholmesdev committed Jun 6, 2023
1 parent 2a4bb23 commit 8034edd
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 136 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.

9 changes: 0 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8034edd

Please sign in to comment.