mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
- Moves as much data out of the `Vm` - Removes duplication with call_vm and call_vt flavours - Uses tracked chain instead of fixed int for determining max nesting depth - This means that nesting checks now generalizes to layout and realization, to detect crashing show rules and overly nested layouts
19 lines
330 B
Typst
19 lines
330 B
Typst
// Test file loading in eval.
|
|
|
|
---
|
|
// Test absolute path.
|
|
#eval("image(\"/files/tiger.jpg\", width: 50%)")
|
|
|
|
---
|
|
#show raw: it => eval(it.text, mode: "markup")
|
|
|
|
```
|
|
#show emph: image("/files/tiger.jpg", width: 50%)
|
|
_Tiger!_
|
|
```
|
|
|
|
---
|
|
// Test relative path.
|
|
// Ref: false
|
|
#test(eval(`"HELLO" in read("./eval-path.typ")`.text), true)
|