From 10b17a04bc27a4b38a0534446d29151d4f6303b3 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 12 Feb 2023 22:39:20 +0100 Subject: Fix docs --- docs/src/reference/scripting.md | 2 +- docs/src/reference/types.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/src/reference/scripting.md b/docs/src/reference/scripting.md index 6928d22a..68e73c62 100644 --- a/docs/src/reference/scripting.md +++ b/docs/src/reference/scripting.md @@ -17,7 +17,7 @@ be interpreted as text, the expression can forcibly be ended with a semicolon (`;`). ```example -#rect[Hello] \ +#emph[Hello] \ #emoji.face \ #"hello".len() ``` diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md index 744e1abd..11580c8b 100644 --- a/docs/src/reference/types.md +++ b/docs/src/reference/types.md @@ -76,8 +76,8 @@ Typst supports the following length units: ## Example ```example -#rect(width: 20pt) \ -#rect(width: 2em) \ +#rect(width: 20pt) +#rect(width: 2em) #rect(width: 1in) ``` @@ -797,10 +797,10 @@ arguments, arrays and dictionaries into a function call with the spread operator ## Example ```example #let format(title, ..authors) = [ - *{title}* \ - _Written by {authors + *#title* \ + _Written by #(authors .pos() - .join(", ", last: " and ")}._ + .join(", ", last: " and "));._ ] #format("ArtosFlow", "Jane", "Joe") -- cgit v1.2.3