Skip to content

Commit

Permalink
Fix level detecton.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Aug 22, 2023
1 parent b6ae3e6 commit 6f54276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kunoichi/TocGenerator/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function parse_html( $html ) {
continue;
}
list( $match, $level ) = $matches;
if ( $this->ignore_deeper && ( (int) $level > $this->ignore_deeper ) ) {
if ( $this->ignore_deeper && ( (int) $level > $this->max_depth) ) {
continue;
}
$items[] = new Item( $hn );
Expand Down

0 comments on commit 6f54276

Please sign in to comment.