From a613227bdd1b47564154ff6de2a2b3466a14826f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 30 Jun 2023 16:25:00 +0200 Subject: [PATCH] Support remote includes for PDF export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit part of #731 Signed-off-by: Aurélien Pupier --- CHANGELOG.md | 1 + src/commands/exportAsPDF.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3224b374..d8847a9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Improvements - provide folding for list of sibling attributes by @apupier (#719) +- support remote includes when exporting in PDF (#731) ### Bug fixes diff --git a/src/commands/exportAsPDF.ts b/src/commands/exportAsPDF.ts index 3b9a1d28..df11168e 100644 --- a/src/commands/exportAsPDF.ts +++ b/src/commands/exportAsPDF.ts @@ -64,6 +64,8 @@ ${text}` `"${baseDirectory.replace('"', '\\"')}"`, // base directory '-o', `"${pdfOutputPath.replace('"', '\\"')}"`, // output file + '-a', + 'allow-uri-read', ] const args = defaultArgs.concat(asciidoctorPdfCommandArgs) .concat(['-']) // read from stdin