Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored and astrobot-houston committed Jan 7, 2025
1 parent aeb7e1a commit 0770810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/integrations/mdx/src/rehype-images-to-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0770810

Please sign in to comment.