Skip to content

Commit fb2dd27

Browse files
committed
test: use filters instead of shortcodes
1 parent 7bb781d commit fb2dd27

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
function typst_path()
2-
return quarto.paths.typst()
1+
function Pandoc(doc)
2+
if quarto.paths.typst() == nil then
3+
crash()
4+
end
35
end
4-
5-
return {
6-
["typst"] = typst_path
7-
}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
format: html
3-
shortcodes:
3+
filters:
44
- typst-path-api.lua
5-
_quarto:
6-
tests:
7-
html:
8-
ensureFileRegexMatches:
9-
- ["<p>The Typst path is <code>.+typst</code>.</p>"]
105
---
116

12-
The Typst path is `{{< typst >}}`.
7+
The Typst path is accessible.

0 commit comments

Comments
 (0)