summaryrefslogtreecommitdiff
path: root/test/snapshots/markup.snap
blob: dc910c7006d8727580008232e979768c8fd82331 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# markup: the two prose grammars. Typst paints headings and the `#` code sigil
# in the keyword colour, bold in the bold-attribute slot, italics and raw spans
# in their own; markdown needs a SECOND grammar (markdown_inline) to see bold
# and italics at all, and both languages inject a tagged code block's language
file paper.typ = Typst heading\n\nProse with *bold* and _italic_ words, a `raw` span,\nand #emph[call] plus #let n = 42\n\n```zig\nfn widget() u8 { return 99; }\n```\n
file notes.md # Markdown heading with *italic*\n\nProse with **bold**, *italic* and an `inline` span.\n\n```zig\nfn gadget() u8 { return 77; }\n```\n
start 25 92 paper.typ
wait 8000 Typst heading
wait 8000 widget
stable 700 20000
snap typst
snapstyle typst
start 25 92 notes.md
wait 8000 Markdown heading
wait 8000 gadget
stable 700 20000
snap markdown
snapstyle markdown