Skip to content

Commit a4798a6

Browse files
OrangeX4Copilot
andauthored
Update core.typ
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2a9396f commit a4798a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core.typ

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@
260260
assert(type(el.numbering) == function, message: "The numbering must be a function with get-loc.")
261261
// Use the metadata location (placed inside the frame body, after the counter step)
262262
// so that the counter value is already correct and no "+1" adjustment is needed.
263-
// The first <theorion-frame-metadata> after el.location() is always this frame's
264-
// own metadata, because the metadata is emitted as the very first content inside
265-
// the figure body (right after the step label). Any later metadata elements
266-
// belong to subsequent frames.
263+
// We rely on the first <theorion-frame-metadata> after el.location() being this
264+
// frame's own metadata, because that metadata is emitted as the very first content
265+
// inside the figure body (right after the step label). Later metadata elements
266+
// may come from nested or subsequent frames and are intentionally ignored here.
267267
let get-loc = () => {
268268
let metadata-els = query(selector(<theorion-frame-metadata>).after(el.location()))
269269
if metadata-els.len() > 0 {

0 commit comments

Comments
 (0)