Skip to content

Commit f0c81e0

Browse files
committed
🎨 Prettify
1 parent 910b7ec commit f0c81e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 3 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
});

0 commit comments

Comments
 (0)