Ensure all values to be changed are wrapped in placeholders

This commit is contained in:
2026-01-29 10:59:39 +01:00
parent 65647d7481
commit a354919fca
2 changed files with 19 additions and 7 deletions

View File

@@ -14,3 +14,15 @@
}
)
}
// rawPlaceholder returns the very same value and type without altering it.
// Has the ability to panic if panicOnPlaceholder is set to true.
#let rawPlaceholder(value) = {
context(
if panicOnPlaceholder.get() {
panic("Found placeholder and panicOnPlaceholder is set.")
}
)
return value
}