File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments