mirror of
https://github.com/typst/typst
synced 2025-05-22 04:55:29 +08:00
test allow with context
no tracepoints there
This commit is contained in:
parent
c96bf9a280
commit
eebd7f49fe
@ -127,3 +127,17 @@ this is ok
|
||||
// Warning: 3-5 no text within stars
|
||||
// Hint: 3-5 using multiple consecutive stars (e.g. **) has no additional effect
|
||||
#[**]
|
||||
|
||||
--- allow-doesnt-suppress-warn-in-nested-context ---
|
||||
// Warning: 2:14-2:27 unknown font family: unbeknownst
|
||||
#let f() = context {
|
||||
text(font: "Unbeknownst")[]
|
||||
}
|
||||
|
||||
/! allow("unknown-font-families")
|
||||
#f()
|
||||
|
||||
/! allow("unknown-font-families")
|
||||
#context {
|
||||
text(font: "Unbeknownst")[]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user