From 08d5c9da50b3b1c764b4619d0528010d85c9d95a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 26 Aug 2022 15:33:30 +0200 Subject: [PATCH] Fix problems with newer pandoc versions Pandoc absolutely wants a styles.html alongside the HTML5 template, so we give it one that's empty. Also, --base-header-level is deprecated and should be replaced with --shift-heading-level-by. The pandoc documentation gives us this formula: Use --shift-heading-level-by=X instead, where X = NUMBER - 1 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/web/pull/359) --- bin/md-to-html5 | 2 +- inc/styles.html | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 inc/styles.html diff --git a/bin/md-to-html5 b/bin/md-to-html5 index a76be280..499a08b0 100755 --- a/bin/md-to-html5 +++ b/bin/md-to-html5 @@ -170,7 +170,7 @@ for f in "$@"; do cd $dir pandoc -t html5 -f markdown --template="$template" \ --highlight-style="$highlightstyle" \ - --tab-stop=8 --base-header-level=2 \ + --tab-stop=8 --shift-heading-level-by=1 \ -M author-meta='OpenSSL Foundation, Inc.' \ -M lang=en \ -M pagetitle="$title" \ diff --git a/inc/styles.html b/inc/styles.html new file mode 100644 index 00000000..e69de29b