Skip to content

Commit f7905e1

Browse files
committed
added support for 2 more levels of headings.
1 parent fa33cd2 commit f7905e1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

utils/wiki2html-en.pl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,21 @@ sub fmt_para {
111111
if ($s =~ /^= (.*?) =$/) {
112112
my $title = $1;
113113
return <<"_EOC_";
114-
<h3 id="$base">$title</h3>
114+
<h1 id="$base">$title</h1>
115+
_EOC_
116+
}
117+
118+
if ($s =~ /^== (.*?) ==$/) {
119+
my $title = $1;
120+
return <<"_EOC_";
121+
<h2>$title</h2>
122+
_EOC_
123+
}
124+
125+
if ($s =~ /^=== (.*?) ===$/) {
126+
my $title = $1;
127+
return <<"_EOC_";
128+
<h2>$title</h2>
115129
_EOC_
116130
}
117131

0 commit comments

Comments
 (0)