summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/src/remark-images-to-component.ts
diff options
context:
space:
mode:
authorGravatar Princesseuh <Princesseuh@users.noreply.github.com> 2023-09-13 16:29:09 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-09-13 16:29:09 +0000
commitde8d6ad2376fef8e6d8c02e590c1322dbfa1a7a9 (patch)
treed064a76db6be5bd154b550f36d46e30336691826 /packages/integrations/mdx/src/remark-images-to-component.ts
parenta8d72ceaeed154434923b21c0ae129a72263b8ed (diff)
downloadastro-de8d6ad2376fef8e6d8c02e590c1322dbfa1a7a9.tar.gz
astro-de8d6ad2376fef8e6d8c02e590c1322dbfa1a7a9.tar.zst
astro-de8d6ad2376fef8e6d8c02e590c1322dbfa1a7a9.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/integrations/mdx/src/remark-images-to-component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/integrations/mdx/src/remark-images-to-component.ts b/packages/integrations/mdx/src/remark-images-to-component.ts
index 40d414b5c..f83f5d76a 100644
--- a/packages/integrations/mdx/src/remark-images-to-component.ts
+++ b/packages/integrations/mdx/src/remark-images-to-component.ts
@@ -96,7 +96,9 @@ export function remarkImageToComponent() {
// Add all the import statements to the top of the file for the images
tree.children.unshift(...importsStatements);
- tree.children.unshift(jsToTreeNode(`import { Image as ${ASTRO_IMAGE_IMPORT} } from "astro:assets";`));
+ tree.children.unshift(
+ jsToTreeNode(`import { Image as ${ASTRO_IMAGE_IMPORT} } from "astro:assets";`)
+ );
// Export `__usesAstroImage` to pick up `astro:assets` usage in the module graph.
// @see the '@astrojs/mdx-postprocess' plugin
tree.children.push(jsToTreeNode(`export const ${USES_ASTRO_IMAGE_FLAG} = true`));