0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

[ci] format

This commit is contained in:
Matt Kane 2025-01-07 17:08:23 +00:00 committed by astrobot-houston
parent aeb7e1ac11
commit 0770810aa4

View file

@ -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));