From 942fa6636d34a70dcd3d1dfe91a81ea6893f481e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 15 Feb 2023 09:52:08 +0100 Subject: Fix raw block highlighting --- tests/typ/text/raw-code.typ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/typ/text/raw-code.typ') diff --git a/tests/typ/text/raw-code.typ b/tests/typ/text/raw-code.typ index d89f1c05..41d20ead 100644 --- a/tests/typ/text/raw-code.typ +++ b/tests/typ/text/raw-code.typ @@ -1,6 +1,7 @@ // Test code highlighting. --- +#set page(width: 180pt) #set text(6pt) ```typ = Chapter 1 @@ -25,7 +26,9 @@ fn advance(state: State<'_>) -> State<'_> { ``` --- +#set page(width: 180pt) #set text(6pt) + ```py import this @@ -37,6 +40,18 @@ def hi(): #set page(width: 180pt) #set text(6pt) +```cpp +#include + +int main() { + std::cout << "Hello, world!"; +} +``` + +--- +#set page(width: 180pt) +#set text(6pt) + #rect(inset: (x: 4pt, y: 5pt), radius: 4pt, fill: rgb(239, 241, 243))[ ```html -- cgit v1.2.3