* Make the toc plugin use html-compatible anchors. This is necessary since

most web sites serve ikiwiki xhtml files as text/html and mozilla browsers
  get confused. So it's best for ikiwiki to follow the compatability 
  recommendations in appendix C of the XHTML spec. Closes: #432045
master
joey 2007-07-08 16:57:05 +00:00
parent c01030c147
commit 45e2c23e03
2 changed files with 10 additions and 1 deletions

View File

@ -47,7 +47,7 @@ sub format (@) { #{{{
if ($tagname =~ /^h(\d+)$/i) {
my $level=$1;
my $anchor="index".++$anchors{$level}."h$level";
$page.="$text<a name=\"$anchor\" />";
$page.="$text<a name=\"$anchor\"></a>";
# Take the first header level seen as the topmost level,
# even if there are higher levels seen later on.

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
ikiwiki (2.4) UNRELEASED; urgency=low
* Make the toc plugin use html-compatible anchors. This is necessary since
most web sites serve ikiwiki xhtml files as text/html and mozilla browsers
get confused. So it's best for ikiwiki to follow the compatability
recommendations in appendix C of the XHTML spec. Closes: #432045
-- Joey Hess <joeyh@debian.org> Sun, 08 Jul 2007 12:54:55 -0400
ikiwiki (2.3) unstable; urgency=low
* Corrected a typo in an error handler in the image plugin.