blob: c02bdfb111c50c81e3233d46b7763d42d3993cd2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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)
|