commit 3a6cf267fd44689489bf0990684d82245af0a42e
parent 8b34965024e5dff7ade03e7ea93d198daaa8aceb
Author: Rikard Karlsen <rk@cassettian.space>
Date: Sun, 5 Sep 2021 13:05:14 +0200
fix: css in printmd
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/printmd b/printmd
@@ -8,7 +8,7 @@ tmp_pdf="/tmp/printmd_$1.pdf"
cp "$1" "$tmp_md"
-echo '<style>html { font-family: "PT Serif", serif } body { max-width: 100%; padding: 0; } h3, h4, h5, h6 { margin-bottom: -0.75em; } h2 { border-bottom: 1px solid; page-break-before: always; } img { display: block; margin: auto; }</style>' >> "$tmp_md"
+echo '<style>html { font-family: "PT Serif", serif } body { max-width: 100%; padding: 0; } h3, h4, h5, h6 { margin-bottom: -0.75em; } h2 { border-bottom: 1px solid; /*page-break-before: always;*/ } img { display: block; margin: auto; }</style>' >> "$tmp_md"
pandoc -s -t html -o "$tmp_pdf" "$tmp_md"