From 643955901728f09a5a879301ecf8fb95e73b68c5 Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Thu, 25 Jun 2026 13:20:59 +0530 Subject: [PATCH] Resolve PDF export assets relative to posts --- scripts/export-pdf.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/export-pdf.mjs b/scripts/export-pdf.mjs index 218dcb5..2700354 100644 --- a/scripts/export-pdf.mjs +++ b/scripts/export-pdf.mjs @@ -37,10 +37,14 @@ const outputPath = path.resolve( ); mkdirSync(path.dirname(outputPath), { recursive: true }); +const resourcePath = [path.dirname(inputPath), repoRoot].join(path.delimiter); + const pandocArgs = [ inputPath, "--from", "markdown+fenced_code_attributes+tex_math_dollars+tex_math_single_backslash+footnotes+raw_html", + "--resource-path", + resourcePath, "--pdf-engine=lualatex", "--lua-filter", filterPath,