Skip to content

Commit 08d5c9d

Browse files
committed
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 <[email protected]> (Merged from openssl#359)
1 parent a28a495 commit 08d5c9d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

bin/md-to-html5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ for f in "$@"; do
170170
cd $dir
171171
pandoc -t html5 -f markdown --template="$template" \
172172
--highlight-style="$highlightstyle" \
173-
--tab-stop=8 --base-header-level=2 \
173+
--tab-stop=8 --shift-heading-level-by=1 \
174174
-M author-meta='OpenSSL Foundation, Inc.' \
175175
-M lang=en \
176176
-M pagetitle="$title" \

inc/styles.html

Whitespace-only changes.

0 commit comments

Comments
 (0)