mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
- No colon between function name and arguments, just whitespace - "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
12 lines
267 B
XML
12 lines
267 B
XML
// Test error cases of the `image` function.
|
|
|
|
// File does not exist.
|
|
[image "path/does/not/exist"]
|
|
|
|
// File exists, but is no image.
|
|
[image "typ/image-error.typ"]
|
|
|
|
// compare-ref: false
|
|
// error: 4:8-4:29 failed to load image
|
|
// error: 7:8-7:29 failed to load image
|