typst-hs
typst-hs copied to clipboard
Typst "Identifier stroke found"
Explain the problem.
EDIT: I have refined the scope of this issue.
#stroke() is not recognized, causing an "Identifier stroke not found" error.
To reproduce, create this file:
// main.typ
#stroke()
// or, for context
#table(stroke: stroke())
// this doesn't work either
#let my-stroke = stroke()
Run pandoc main.typ, this error occurs:
"main.typ" (line 1, column 2):
Identifier "stroke" not found
Pandoc version?
pandoc 3.8.2.1
Features: +server +lua
Scripting engine: Lua 5.4
Running on macOS Tahoe.
It's confusing since #stroke is similar to #rgb, they don't return any content, and none of them has a handler defined in Typst.hs, but rgb works and stroke doesn't.
This issue should be moved to https://github.com/jgm/typst-hs!