Skip to content

Commit 6f54276

Browse files
committed
Fix level detecton.
1 parent b6ae3e6 commit 6f54276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kunoichi/TocGenerator/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function parse_html( $html ) {
9292
continue;
9393
}
9494
list( $match, $level ) = $matches;
95-
if ( $this->ignore_deeper && ( (int) $level > $this->ignore_deeper ) ) {
95+
if ( $this->ignore_deeper && ( (int) $level > $this->max_depth) ) {
9696
continue;
9797
}
9898
$items[] = new Item( $hn );

0 commit comments

Comments
 (0)