diff options
author | 2025-01-07 17:08:23 +0000 | |
---|---|---|
committer | 2025-01-07 17:08:23 +0000 | |
commit | 0770810aa458192d1d6f14a51a17504885f67644 (patch) | |
tree | fe7f5c46621c1e3db6771cb65982d9c0f98ce91f | |
parent | aeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae (diff) | |
download | astro-0770810aa458192d1d6f14a51a17504885f67644.tar.gz astro-0770810aa458192d1d6f14a51a17504885f67644.tar.zst astro-0770810aa458192d1d6f14a51a17504885f67644.zip |
[ci] format
-rw-r--r-- | packages/integrations/mdx/src/rehype-images-to-component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/integrations/mdx/src/rehype-images-to-component.ts b/packages/integrations/mdx/src/rehype-images-to-component.ts index 8e8c9f3ae..c903ae511 100644 --- a/packages/integrations/mdx/src/rehype-images-to-component.ts +++ b/packages/integrations/mdx/src/rehype-images-to-component.ts @@ -78,7 +78,8 @@ export function rehypeImageToComponent() { const importedImages = new Map<string, string>(); visit(tree, 'element', (node, index, parent) => { - if (!file.data.astro?.imagePaths?.length || node.tagName !== 'img' || !node.properties.src) return; + if (!file.data.astro?.imagePaths?.length || node.tagName !== 'img' || !node.properties.src) + return; const src = decodeURI(String(node.properties.src)); |