From 0d5e1842dde4f4790d78664a3653ac06cd6e4c90 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 6 Mar 2025 09:53:25 -0800 Subject: [PATCH] doc: Some examples in diagram.typ --- src/content/post/diagram.typ | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/content/post/diagram.typ b/src/content/post/diagram.typ index fc9a953..f7f4ced 100644 --- a/src/content/post/diagram.typ +++ b/src/content/post/diagram.typ @@ -9,6 +9,8 @@ This is a diagram. +#emph(text(blue)[blue text]) + #html.frame(cetz.canvas(length: 3cm, { import cetz.draw: * @@ -67,11 +69,20 @@ This is a diagram. inset: 10pt, align: horizon, table.header( - [*System*], [*Speed*] + [*System*], [*Speed*], [*Diagrams*], ), - [LaTeX], [Slow], - [Markdown], [Fast], - [Typst], [Fast], + [LaTeX], [Slow], [Y], + [Markdown], [Fast], [N], + [Typst], [Fast], [N], ), caption: [Comparison of blog typesetting options] ) + +== Code + +#html.frame[```rust +fn deposit_cookie() { + let cookie = generate(); + cookie_jar(cookie); +} +```]