Skip to content

Commit 3be8d96

Browse files
committed
typst, test, listing - update test for alignment and language
1 parent cc09dfd commit 3be8d96

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

tests/docs/smoke-all/crossrefs/float/typst/typst-listings-1.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ _quarto:
77
typst:
88
ensureTypstFileRegexMatches:
99
-
10-
- "#ref\\(<lst-customers>, supplement: \\[Listing\\]\\)"
11-
- "Customers Query"
10+
- '#figure\(\[\s+#set align\(left\)'
11+
- '```sql\s+SELECT \* FROM Customers\s+```'
12+
- '#ref\(<lst-customers>, supplement: \[Listing\]\)'
13+
- 'Customers Query'
1214
- []
1315
---
1416

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Listings Test
3+
format: typst
4+
keep-typ: true
5+
_quarto:
6+
tests:
7+
typst:
8+
ensureTypstFileRegexMatches:
9+
-
10+
- '#figure\(\[\s+#set align\(left\)'
11+
- '```sql\s+SELECT \* FROM Customers\s+```'
12+
- '#ref\(<lst-customers>, supplement: \[Listing\]\)'
13+
- 'Customers Query'
14+
- []
15+
---
16+
17+
::: {#lst-customers}
18+
19+
```{.sql}
20+
SELECT * FROM Customers
21+
```
22+
Customers Query
23+
24+
:::
25+
26+
Then we query the customers database (@lst-customers).

0 commit comments

Comments
 (0)