Skip to content

config for footnotes cannot be updated #11

@retroflexivity

Description

@retroflexivity

due to the fact that show rules are applied on top of each other, and that footnote config is applied as a separate show rule, and that typst doesn't allow to reset a show rule yet (typst/typst#420), footnote config set by older show rules overrides that set by newer ones. this effectively means that footnote options cannot be changed after applying the initial eggs show rule.

steps to reproduce:

  1. set any config (e.g. show: eggs)
  2. set any other config that includes a footnote option (e.g. show: eggs.with(footnote-separate-counter: false))
  3. add an example in a footnote

expected: the new config is applied (e.g. no separate counter is used)
actual: the original config is applied

this is probably fixable, but i'm quite tired of all those show-rule--state clutches, so i really don't want to do that. also, the case is so narrow no one is probably going to ever encounter the bug. and show rule resetting will likely come at some point. a contribution would be appreciated anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions