mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
[ci] format
This commit is contained in:
parent
aeb7e1ac11
commit
0770810aa4
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue