Skip to content

Commit 7132e52

Browse files
committed
🎨 Prettify
1 parent 910b7ec commit 7132e52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,15 @@ const nodes: Config["nodes"] = {
429429
let src = node.attributes.src;
430430

431431
// Use base path if passed as variable
432-
const basePath = config.variables.basePath || '';
432+
const basePath = config.variables.basePath || "";
433433

434434
// Rewrite relative paths to absolute
435-
if (src.startsWith('./') || src.startsWith('../')) {
435+
if (src.startsWith("./") || src.startsWith("../")) {
436436
src = path.posix.join(basePath, src);
437437
}
438438

439439
// Return a new node with modified src attribute
440-
return new Markdoc.Tag('EnhancedImage', {
440+
return new Markdoc.Tag("EnhancedImage", {
441441
...node.attributes,
442442
src,
443443
});
@@ -653,7 +653,7 @@ export const load = async () => {
653653
slug: module.slug,
654654
frontmatter: module.frontmatter,
655655
};
656-
}),
656+
})
657657
);
658658
return { content };
659659
};

0 commit comments

Comments
 (0)