Make autolink-headings more consistent

This commit is contained in:
Ben Edgington
2025-06-01 17:27:38 +01:00
parent 92092c75a8
commit bfdfb3674a
4 changed files with 23 additions and 20 deletions

View File

@@ -95,14 +95,14 @@ while (<>) {
if ($thisSection ne '') {
print $ofh
"\n<div class=\"section-header\">\n",
"# $thisPart\n",
"## $thisChapter",
"<h1 class=\"no-link\">$thisPart</h1>\n",
"<h2 class=\"no-link\">$thisChapter</h2>\n",
"\n</div>\n",
"### $thisSection";
} elsif ($thisChapter ne '') {
print $ofh
"\n<div class=\"chapter-header\">\n",
"# $thisPart",
"<h1 class=\"no-link\">$thisPart</h1>\n",
"\n</div>\n",
"## $thisChapter";
} else {