We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910b7ec commit f0c81e0Copy full SHA for f0c81e0
‎README.md‎
@@ -429,15 +429,15 @@ const nodes: Config["nodes"] = {
429
let src = node.attributes.src;
430
431
// Use base path if passed as variable
432
- const basePath = config.variables.basePath || '';
+ const basePath = config.variables.basePath || "";
433
434
// Rewrite relative paths to absolute
435
- if (src.startsWith('./') || src.startsWith('../')) {
+ if (src.startsWith("./") || src.startsWith("../")) {
436
src = path.posix.join(basePath, src);
437
}
438
439
// Return a new node with modified src attribute
440
- return new Markdoc.Tag('EnhancedImage', {
+ return new Markdoc.Tag("EnhancedImage", {
441
...node.attributes,
442
src,
443
});
0 commit comments