typst-hs icon indicating copy to clipboard operation
typst-hs copied to clipboard

Typst "Identifier stroke found"

Open sghng opened this issue 4 months ago • 2 comments

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.

sghng avatar Oct 21 '25 17:10 sghng

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.

sghng avatar Oct 21 '25 18:10 sghng

This issue should be moved to https://github.com/jgm/typst-hs!

sghng avatar Oct 21 '25 18:10 sghng