[ci] format

This commit is contained in:
五月七日千緒
2025-12-04 09:02:54 +00:00
committed by astrobot-houston
parent d8305f8abd
commit 45c9accf3c
2 changed files with 5 additions and 2 deletions

View File

@@ -58,7 +58,10 @@ export function rehypeImages() {
imageOccurrenceMap.set(node.properties.src, index + 1);
// Set a special property on the image so later Astro code knows to process this image.
node.properties = { ...hastProperties, __ASTRO_IMAGE_: JSON.stringify({ ...imageProperties, index }) };
node.properties = {
...hastProperties,
__ASTRO_IMAGE_: JSON.stringify({ ...imageProperties, index }),
};
});
};
}

View File

@@ -8,7 +8,7 @@ describe('collect images', async () => {
let processorWithHastProperties;
before(async () => {
processor = await createMarkdownProcessor({ image: { domains: ['example.com'] }, });
processor = await createMarkdownProcessor({ image: { domains: ['example.com'] } });
processorWithHastProperties = await createMarkdownProcessor({
rehypePlugins: [
() => {