Fixes openssl/project#394
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/web/pull/447)
+++ /dev/null
-#! /usr/bin/env perl
-
-# The pod source may contain things that can be reinterpreted as markdown,
-# and thereby rendered incorrectly. This script fixes that, usually by
-# replacing some character with the corresponding HTML character entity.
-
-local $/; # Slurp the whole file
-my $contents = <STDIN>;
-
-$contents =~ s|\]\(|\](|g; # ]( suggests a markdown link
-
-print $contents;
input_file="$HERE/../$f"
fi
- pandoc -t html5 -f markdown --template="$template" \
+ pandoc -t html5 -f markdown-markdown_in_html_blocks \
+ --template="$template" \
--highlight-style="$highlightstyle" \
--tab-stop=8 --shift-heading-level-by=1 \
-M author-meta='OpenSSL Foundation, Inc.' \
# Adapt all H tags to be wrapped inside H1 and H2
$contents =~ s@(</?h)(\d)(\s|>)@$1.($2 + 2).$3@emg;
-#added from /bin/fix-man-html
-$contents =~ s|\]\(|\](|g; # ]( suggests a markdown link
print $contents;