Skip to content

typst query doesn't work with HTML export #6404

@MDLC01

Description

@MDLC01

Description

typst query always generates document for paged targets. This means it is not possible to use the command to query elements that are only present in HTML export.

For example, consider the document below, meant to be exported to HTML only:

#html.elem("body")[#metadata("bug") <query-me>]

The following command returns an empty list and warns that the html.elem was ignored during paged export.

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliAbout Typst's command line interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions