#let panicOnPlaceholder = state("panicOnPlaceholder", true) // Return the value with a colorful background so it is visibly a placeholder. // Has the ability to panic if panicOnPlaceholder is set to true. #let placeholder(value) = { highlight( fill: rgb(0xff, 0xa2, 0x9c, 0xff), value ) context( if panicOnPlaceholder.get() { panic("Found placeholder and panicOnPlaceholder is set.") } ) } // 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 }