fix: reference supplements

This commit is contained in:
Kristofers Solo 2025-08-26 13:55:33 +03:00
parent 28f93156cb
commit ebd6bb8113
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED
2 changed files with 8 additions and 4 deletions

View File

@ -272,7 +272,7 @@ Skatīt @logical-erd
) <logical-erd> ) <logical-erd>
=== Datu bāzes fiziskais ER modelis === Datu bāzes fiziskais ER modelis
Skatīt @physical-erd[attēlu]. Skatīt @physical-erd[]
#figure( #figure(
caption: "Datu bāzes loģiskais ER modelis", caption: "Datu bāzes loģiskais ER modelis",

View File

@ -174,6 +174,8 @@
..counter(el.func()).at(el.location()), ..counter(el.func()).at(el.location()),
) )
// return el.supplement
if el.func() == heading { if el.func() == heading {
return link( return link(
@ -184,13 +186,15 @@
let supplement = if type(it.supplement) == content { let supplement = if type(it.supplement) == content {
// supplement provided by user
if it.supplement == [] { if it.supplement == [] {
"" "" // empty supplement
} else { } else {
[~#it.supplement] [~#it.supplement.]
} }
} else { } else {
[~#it.supplement] // fallback to default
[~#el.supplement.]
} }
if el.func() == figure { if el.func() == figure {