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

@ -1283,11 +1283,14 @@ body.full-width #main-content {
margin-bottom: calc(var(--unit--vertical) / 4);
}
.toc ul {
.toc > ul {
display: flex;
flex-direction: column;
gap: calc(var(--unit--vertical) / 4);
}
.toc > ul > li > ul {
margin-left: var(--unit--horizontal);
}
.toc li {
margin-left: 0;