aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-09-02 21:36:49 -0700
committerJohn MacFarlane <[email protected]>2024-09-02 21:36:49 -0700
commit826f7879a4408af230c6fa0bc550e593c0a2616b (patch)
treecadef5af38d00f48da6015dbe2c021ba3f6c92a1 /src
parent403271e244bff621763a4213f5d8ea0fc90a74be (diff)
Change default `--pdf-engine` via HTML to WeasyPrint.
wkhtmltopdf is deprecated. weasyprint is the easiest-to-install, maintained alternative. For better results, one might prefer pagedjs-cli. Closes #10142.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index c425e2a18..a1ccda704 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -214,7 +214,7 @@ latexEngines = ["pdflatex", "lualatex", "xelatex", "latexmk", "tectonic"]
-- | Supported HTML PDF engines; the first item is used as default
-- engine when going through HTML.
htmlEngines :: [String]
-htmlEngines = ["wkhtmltopdf", "weasyprint", "pagedjs-cli", "prince"]
+htmlEngines = ["weasyprint", "wkhtmltopdf", "pagedjs-cli", "prince"]
engines :: [(Text, String)]
engines = map ("html",) htmlEngines ++