From afa344f33db80456bb3091e3863ca673d43c5db8 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 1 Feb 2023 13:32:05 +0100 Subject: Fix raw show rule --- tests/typ/math/syntax.typ | 3 +-- tests/typ/text/raw.typ | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/typ') diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ index 80facfb2..8ffded29 100644 --- a/tests/typ/math/syntax.typ +++ b/tests/typ/math/syntax.typ @@ -1,11 +1,10 @@ #set page(width: auto) -#set text("Latin Modern Roman") #show : it => table( columns: 2, inset: 8pt, ..it.text .split("\n") - .map(line => (text(10pt, raw(line, lang: "typ")), eval(line) + [ ])) + .map(line => (raw(line, lang: "typ"), text("Latin Modern Roman", eval(line)))) .flatten() ) diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ index 96a23b66..f8731cca 100644 --- a/tests/typ/text/raw.typ +++ b/tests/typ/text/raw.typ @@ -44,6 +44,11 @@ The keyword ```rust let```. C ``` +--- +// Text show rule +#show raw: set text("Roboto") +`Roboto` + --- // Unterminated. // Error: 2:1 expected 1 backtick -- cgit v1.2.3