Closed ntjess closed 11 months ago
I think the problem is actually in the second to last line. This simpler case:
#{ return ((str(5)): 1) }
produces
"stdin" (line 1, column 20):
unexpected ":"
expecting "//", "/*", operator or ")"
What is this syntax with the colon?
Sorry, I see now that it's dictionary forming. Better example (actually valid in typst):
#(1,2).map(num => return (str(num): num) )
"stdin" (line 1, column 18):
unexpected '>'
expecting operator
Should produce:
(("1":1),("2":2))
Zeroing in on the real problem:
#(str(3): 3, str(4): 4)
"stdin" (line 1, column 9):
unexpected ":"
expecting "//", "/*", "[", operator or ")"
Apparently typst-hs doesn't like dictionary syntax where the key is not a constant.
Explain the problem. The following is a valid typst document that compiles under typst 0.10.0 (70ca0d25) pandoc online link
But converting with pandoc 3.1.10, it results in the following error: