summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index e22298fa3..aba44e8da 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -97,7 +97,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
//handle TOC
if($level >= $conf['toptoclevel'] && $level <= $conf['maxtoclevel']){
- $this->toc[] = html_mktocitem("#$id", $text, $level);
+ $this->toc[] = html_mktocitem("#$id", $text, $level-$conf['toptoclevel']+1);
}
}