summaryrefslogtreecommitdiff
path: root/tests/typ/compute/eval-path.typ
blob: 863b620317d776efb5e81663b0efedaf1f6d3c5f (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(\"/assets/images/tiger.jpg\", width: 50%)")

---
#show raw: it => eval(it.text, mode: "markup")

```
#show emph: image("/assets/images/tiger.jpg", width: 50%)
_Tiger!_
```

---
// Test relative path.
// Ref: false
#test(eval(`"HELLO" in read("./eval-path.typ")`.text), true)