Skip to content

Commit

Permalink
check for max depth in loop, raise limit
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Jan 9, 2025
1 parent 82e3a7e commit 9654c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/element.typ
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
// understands that show rules on spacing may cause unexpected behavior.
let potential-doc = [#doc]
let wrappers = ()
let max-depth = 100
let max-depth = 150
// Acceptable content types for set rule lifting.
// These are content types that are leaves and we usually don't expect them to
// be replaced in a show rule by an actual custom element.
Expand All @@ -691,7 +691,7 @@
let loop-children = ()
let loop-last = none

while true {
while max-depth > 0 {
// Child is #{
// set something(abc: def)
// show something: else
Expand Down

0 comments on commit 9654c95

Please sign in to comment.