Commit d5680c5d203ed0bdf50477d61512150a2eb3b315

Ryan C. Gordon 2023-01-26T10:19:23

wikiheaders: Allow markdown in the wikipreamble string. Reference Issue #6568. (cherry picked from commit a089b2ea19404f6dacd083327e13cae888b58993)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"); }
         }