Skip to content

Commit

Permalink
Fix problems with newer pandoc versions
Browse files Browse the repository at this point in the history
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 <matt@openssl.org>
(Merged from #359)
  • Loading branch information
levitte committed Aug 26, 2022
1 parent a28a495 commit 08d5c9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/md-to-html5
Expand Up @@ -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" \
Expand Down
Empty file added inc/styles.html
Empty file.

0 comments on commit 08d5c9d

Please sign in to comment.