toc : add h4 support with nested structure and fix anchors in non-block mode

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-03-27 19:18:32 +01:00
parent 4e5440a7ae
commit b724ed1244
6 changed files with 40 additions and 14 deletions

View file

@ -36,7 +36,7 @@
<?php elseif ($page->isBlockMode()->isTrue()): ?>
<?= $page->bodyWithAnchors() ?>
<?php else: ?>
<?= $page->body() ?>
<?= $page->bodyWithAnchors() ?>
<?php endif ?>
</div>
</article>