From 0df55dbce0421c773e2a0d1a93f809b8d6eb405d Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 15 Sep 2021 17:34:14 +0200 Subject: [PATCH] add alternative --- alternatives.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/alternatives.sh b/alternatives.sh index b2948f2..be3557d 100644 --- a/alternatives.sh +++ b/alternatives.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash function convert0(){ + # Same as the current process (in md-to-pdf), but using WeasyPrint instead of wkhtmltopdf. + # -> https://github.com/Kozea/WeasyPrint/ + return 0 +} + +function convert1(){ file="${1}" html="${file}".html; @@ -16,7 +22,7 @@ function convert0(){ rm "${html}" } -function convert1(){ +function convert2(){ md="${1}" out="${md}".pdf @@ -39,7 +45,7 @@ function convert1(){ -V 'geometry:margin=1.5cm' } -function convert2(){ +function convert3(){ md="${1}" # * https://www.npmjs.com/package/markdown-pdf