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:
parent
4e5440a7ae
commit
b724ed1244
6 changed files with 40 additions and 14 deletions
|
|
@ -36,7 +36,7 @@
|
|||
<?php elseif ($page->isBlockMode()->isTrue()): ?>
|
||||
<?= $page->bodyWithAnchors() ?>
|
||||
<?php else: ?>
|
||||
<?= $page->body() ?>
|
||||
<?= $page->bodyWithAnchors() ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue