From 2fa8308afa1032b490018975d7138f0731369c3f Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 1 Feb 2022 22:33:15 +0100 Subject: Restore wkhtmltopdf as default pdf engine for HTML --- src/Text/Pandoc/App/CommandLineOptions.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index dbf1ca706..19b807205 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -105,11 +105,15 @@ parseOptionsFromArgs options' defaults prg rawArgs = do not (null (optIncludeBeforeBody opts)) || not (null (optIncludeAfterBody opts)) } +-- | Supported LaTeX engines; the first item is used as default engine +-- when going through LaTeX. latexEngines :: [String] 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 = ["pagedjs-cli", "wkhtmltopdf", "weasyprint", "prince"] +htmlEngines = ["wkhtmltopdf", "weasyprint", "pagedjs-cli", "prince"] engines :: [(Text, String)] engines = map ("html",) htmlEngines ++ -- cgit v1.2.3