Open ntjess opened 11 months ago
Also occurs for version
What do you mean, version
? Give a full example.
Also occurs with renamed imports.
Consider two files: an empty lib.typ
and the following main.typ
in the same folder:
#import "lib.typ" as mylib
#repr(mylib)
Pandoc will produce the error:
Identifier "mylib" not found
Yeah, I haven't supported renamed imports yet. Nor gradients. Nor versions as types.
Thanks for reporting all these things, though. It's helpful to have real-world testing.
Happy to help!
Hello! I'm facing something similar, but content
instead:
pandoc main.typ -o main.tex
"helpers.typ" (line 4, column 4):
Identifier "content" not found
Full helpers.typ
file
#let r = body => [
#let body = if type(body) == content and body.func() == raw { body.text } else { body } // error here
#raw(lang: "r", body)
]
#let rust = body => [
#let body = if type(body) == content and body.func() == raw { body.text } else { body }
#raw(lang: "rust", body)
]
#let todo = box(fill: red.lighten(80%), inset: (x: 2pt), outset: (y: 2pt), radius: 2pt)[`TODO`]
Sorry for so many back-to-back issues, haha. I'm converting a somewhat large project to markdown and reporting all the errors that ensue.
Produces the error