Resolve PDF export assets relative to posts
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
This commit is contained in:
parent
58310e1944
commit
6439559017
1 changed files with 4 additions and 0 deletions
|
|
@ -37,10 +37,14 @@ const outputPath = path.resolve(
|
||||||
);
|
);
|
||||||
mkdirSync(path.dirname(outputPath), { recursive: true });
|
mkdirSync(path.dirname(outputPath), { recursive: true });
|
||||||
|
|
||||||
|
const resourcePath = [path.dirname(inputPath), repoRoot].join(path.delimiter);
|
||||||
|
|
||||||
const pandocArgs = [
|
const pandocArgs = [
|
||||||
inputPath,
|
inputPath,
|
||||||
"--from",
|
"--from",
|
||||||
"markdown+fenced_code_attributes+tex_math_dollars+tex_math_single_backslash+footnotes+raw_html",
|
"markdown+fenced_code_attributes+tex_math_dollars+tex_math_single_backslash+footnotes+raw_html",
|
||||||
|
"--resource-path",
|
||||||
|
resourcePath,
|
||||||
"--pdf-engine=lualatex",
|
"--pdf-engine=lualatex",
|
||||||
"--lua-filter",
|
"--lua-filter",
|
||||||
filterPath,
|
filterPath,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue