feat: Typst posts #41

Open
aniva wants to merge 5 commits from post/typst into main
1 changed files with 15 additions and 4 deletions
Showing only changes of commit 0d5e1842dd - Show all commits

View File

@ -9,6 +9,8 @@
This is a diagram. This is a diagram.
#emph(text(blue)[blue text])
#html.frame(cetz.canvas(length: 3cm, { #html.frame(cetz.canvas(length: 3cm, {
import cetz.draw: * import cetz.draw: *
@ -67,11 +69,20 @@ This is a diagram.
inset: 10pt, inset: 10pt,
align: horizon, align: horizon,
table.header( table.header(
[*System*], [*Speed*] [*System*], [*Speed*], [*Diagrams*],
), ),
[LaTeX], [Slow], [LaTeX], [Slow], [Y],
[Markdown], [Fast], [Markdown], [Fast], [N],
[Typst], [Fast], [Typst], [Fast], [N],
), ),
caption: [Comparison of blog typesetting options] caption: [Comparison of blog typesetting options]
) )
== Code
#html.frame[```rust
fn deposit_cookie() {
let cookie = generate();
cookie_jar(cookie);
}
```]