Skip to content

Commit a91bd59

Browse files
committed
Pass relative CSL paths to Pandoc
Fixes #2945
1 parent 7063ef6 commit a91bd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/types/book/book-bibliography.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async function generateBibliographyHTML(
201201
[kNoCite]: ld.uniq(citeIds).map((id) => "@" + id).join(", "),
202202
};
203203
if (csl) {
204-
yaml[kCsl] = csl;
204+
yaml[kCsl] = isAbsolute(csl) ? relative(context.dir, csl) : csl;
205205
}
206206
const frontMatter = `---\n${stringify(yaml, { indent: 2 })}\n---\n`;
207207
const result = await execProcess({

0 commit comments

Comments
 (0)