Skip to content

Commit

Permalink
Merge pull request #2 from kuno1/wip/1.0
Browse files Browse the repository at this point in the history
Fix level detecton.
  • Loading branch information
fumikito authored Aug 22, 2023
2 parents 2421bf8 + 6f54276 commit cbad3e6
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 cbad3e6

Please sign in to comment.