Skip to content

Commit 21c233c

Browse files
ascorbicastrobot-houston
authored andcommitted
[ci] format
1 parent 50e2e0b commit 21c233c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/astro/src/content/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { MarkdownHeading } from '@astrojs/markdown-remark';
2+
import { escape } from 'html-escaper';
23
import { Traverse } from 'neotraverse/modern';
34
import pLimit from 'p-limit';
45
import { ZodIssueCode, z } from 'zod';
56
import type { GetImageResult, ImageMetadata } from '../assets/types.js';
67
import { imageSrcToImportId } from '../assets/utils/resolveImports.js';
78
import { AstroError, AstroErrorData, AstroUserError } from '../core/errors/index.js';
89
import { prependForwardSlash } from '../core/path.js';
9-
import { escape } from 'html-escaper';
1010

1111
import {
1212
type AstroComponentFactory,

packages/astro/test/content-layer.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ describe('Content Layer', () => {
253253
});
254254

255255
it('escapes alt text in markdown', async () => {
256-
assert.equal($('img[alt^="xss"]').attr('alt'), 'xss "><script>alert(1)</script>');
256+
assert.equal($('img[alt^="xss"]').attr('alt'), 'xss "><script>alert(1)</script>');
257257
});
258-
258+
259259
it('returns a referenced entry', async () => {
260260
assert.ok(json.hasOwnProperty('referencedEntry'));
261261
assert.deepEqual(json.referencedEntry, {

0 commit comments

Comments
 (0)