Skip to content

Cannot set raw theme to none #4182

Closed

Description

@Coekjan

Description

image

The document says raw.theme can be none or str, but when I compile the following code:

#set raw(theme: none)

it emits the error:

error: expected string, found none

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on May 18, 2024
  2. Coekjan commented on May 18, 2024

    @Coekjan
    ContributorAuthor
  3. Enivex commented on May 18, 2024

    @Enivex
    Collaborator

    Curiously, the default is none, so how is it working at all?

  4. Coekjan commented on May 18, 2024

    @Coekjan
    ContributorAuthor

    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.

  5. added
    styling
    on May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstyling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions