mirror of
https://github.com/withastro/astro.git
synced 2025-12-05 18:56:38 -06:00
[ci] format
This commit is contained in:
@@ -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 }),
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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: [
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user