Skip to content

Footnote styling breaks links #2430

@EpicEricEE

Description

@EpicEricEE

Description

When using a show rule for a footnote entry, the link from the footnote in the text leads to the beginning of the document. For example:

#show footnote.entry: it => {
  let number = numbering(it.note.numbering, ..counter(footnote).at(it.note.location()))
  let body = it.note.body

  [#link(it.note.location())[#number)] #body]
}

This is up here #footnote[and this is down here]

When doing it the other way around, styling the footnote itself does not allow adding a link to the footnote entry, as there is no way to get its location.

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

    bugSomething isn't workingmodelRelated to model category, which is all about structure and semantics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions