mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-03 17:15:46 +00:00
wikiheaders: Allow markdown in the wikipreamble string.
Reference Issue #6568. (cherry picked from commit a089b2ea19404f6dacd083327e13cae888b58993)
This commit is contained in:
parent
1069c8931d
commit
d5680c5d20
|
@ -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"); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue