diff -r 367768040a61 -r 4b858862c35c includes/wikiengine/render_xhtml.php --- a/includes/wikiengine/render_xhtml.php Wed Sep 30 20:01:23 2009 -0400 +++ b/includes/wikiengine/render_xhtml.php Sun Oct 04 03:59:38 2009 -0400 @@ -29,6 +29,8 @@ foreach ( $pieces as $i => $piece ) { $tocid = sanitize_page_id(trim($piece['text'])); + // (bad) workaround for links in headings + $tocid = str_replace(array('[', ']'), '', $tocid); $tag = ''; $tag .= trim($piece['text']); $tag .= '';