We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
none
The document says raw.theme can be none or str, but when I compile the following code:
raw.theme
str
#set raw(theme: none)
it emits the error:
error: expected string, found none
No response
The text was updated successfully, but these errors were encountered:
It seems because parse_theme always wants to parse the arg into EcoString: https://github.com/typst/typst/blob/v0.11.1/crates/typst/src/text/raw.rs#L820
parse_theme
EcoString
Sorry, something went wrong.
Curiously, the default is none, so how is it working at all?
I think it is because the bug is at argument parsing. The none behavior will work if the arg is parsed successfully.
auto
Successfully merging a pull request may close this issue.
Description
The document says
raw.theme
can benone
orstr
, but when I compile the following code:it emits the error:
Reproduction URL
No response
Operating system
No response
Typst version
The text was updated successfully, but these errors were encountered: