wikiheaders: Allow markdown in the wikipreamble string. Reference Issue #6568. (cherry picked from commit a089b2ea19404f6dacd083327e13cae888b58993)
diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index 79214c2..e9793d4 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -1169,10 +1169,11 @@ if ($copy_direction == 1) { # --copy-to-headers
$$sectionsref{'[footer]'} = $footer;
if (defined $wikipreamble) {
+ my $wikified_preamble = wikify($wikitype, $wikipreamble);
if ($wikitype eq 'mediawiki') {
- print FH "====== $wikipreamble ======\n";
+ print FH "====== $wikified_preamble ======\n";
} elsif ($wikitype eq 'md') {
- print FH "###### $wikipreamble\n";
+ print FH "###### $wikified_preamble\n";
} else { die("Unexpected wikitype '$wikitype'\n"); }
}