Skip to content

Unhelpful error message for footnote when exporting to HTML with user-specified <html> or <body> #6939

@MDLC01

Description

@MDLC01

Description

Consider this simple piece of code:

#show: html.body
#footnote[Hey]

This results in the following error message when exporting to HTML, with no additional information: "error: failed to determine link anchor".

As mentioned in #6917, the goal is to support footnotes even with a user-specified <html> or <body> tag, but until then it would be great to have a clearer error message, such as "error: footnotes are not yet supported when exporting to HTML with a user-specified <html> or <body> tag".

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

    diagnosticsImprovements to compiler errors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions