fix(cph): correct nested outline hierarchy

This commit is contained in:
2026-08-05 17:36:43 +08:00
committed by 洪佳荣
parent dd8fcfd366
commit 3d46525f40
10 changed files with 39 additions and 1078 deletions
-9
View File
@@ -248,17 +248,8 @@
/// note rendered as a visually distinct teaching-tip box.
#let _render-outline-node(node, level) = {
let title = node.at("title", default: "")
let kind = node.at("kind", default: "")
heading(level: level)[#title]
if kind != "" {
block(
inset: (x: 0.35em, y: 0.1em),
fill: gray.lighten(80%),
radius: 0.2em,
text(size: 9pt, fill: gray.darken(30%))[#kind],
)
}
let notes = node.at("notes", default: none)
if notes != none and notes != "" {