Skip to content

Empty labels should not be allowed #5776

@EpicEricEE

Description

@EpicEricEE

Description

Attaching an empty label to a figure (or other element) as in

#figure(rect(), caption: [...]) #label("")

allows you to reference it with just @, which should probably not be allowed.

Reproduction URL

No response

Operating system

Web app, Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestA proposal for changes to an existing featurescriptingAbout Typst's coding capabilitiessyntaxAbout syntax, parsing, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions