-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.tiramisu
51 lines (40 loc) · 1017 Bytes
/
example.tiramisu
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
44
45
46
47
48
49
50
51
heading { level = 1, Tiramisu }
This is bold { italic { Tiramisu } }.
This is a link { https://example.com }.
This is an image { https://example.com/image.png, alt = Image alt }.
This is a list:
list {
item = one,
item = two,
item = three
}
Or simply:
list { one, two, three }
Use "string literals" to escape special characters:
list { one, "two, three" }
You can make ordered lists like this:
list { type = ordered, one, two, three }
Tables are made like this:
table {
row = [ Price, Terms of Use ],
row = [ $10.0, xyz link { https://example.com/tos } ]
}
You can embed tables and lists in tables:
table {
row = [ Heading, Heading 2 ],
row = [ table { ... }, list { ... } ]
}
You can escape stuff with \, or like this:
"italic { this won't be italic }"
Or like this:
"""italic { this won't be italic }"""
In fact, it works with any number of quotes:
""""italic { this won't be italic }""""
BEHOLD! Code blocks:
code {
language = python,
"""
def hello():
print("world")
"""
}