summaryrefslogtreecommitdiff
path: root/tests/typ/text/emphasis.typ
blob: 0191ac87e595ef03c57d43ac5e1bcfa761954484 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Test emph and strong.

---
// Basic.
_Emphasized and *strong* words!_

// Inside of a word it's a normal underscore or star.
hello_world Nutzer*innen

// Can contain paragraph in nested content block.
_Still #[

] emphasized._

---
// Inside of words can still use the functions.
P#strong[art]ly em#emph[phas]ized.

---
// Adjusting the delta that strong applies on the weight.
Normal

#set strong(delta: 300)
*Bold*

#set strong(delta: 150)
*Medium* and *#[*Bold*]*

---
// Error: 13 expected underscore
#box[_Scoped] to body.

---
// Ends at paragraph break.
// Error: 7 expected underscore
_Hello

World

---
// Error: 26 expected star
// Error: 26 expected underscore
#[_Cannot *be interleaved]