Skip to content

Commit 3980cfb

Browse files
committed
resolve project-relative shortcodes
1 parent 79b7b63 commit 3980cfb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/command/render/filters.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,11 @@ async function quartoFilterParams(
607607
}
608608
const shortcodes = format.render[kShortcodes];
609609
if (shortcodes !== undefined) {
610-
params[kShortcodes] = shortcodes;
610+
params[kShortcodes] = shortcodes.map((p) => {
611+
if (p.startsWith("/")) {
612+
return resolve(join(options.project.dir, p));
613+
}
614+
});
611615
}
612616
const extShortcodes = await extensionShortcodes(options);
613617
if (extShortcodes) {

0 commit comments

Comments
 (0)