Lemmify package: How do I get linear theorem numbering?

How can I get the lemmify package (or an alternative package) to display theorems numbered 1, 2, 3?

When I try to apply thm-numbering-linear, numbering is still reset to 1 in each heading:

#import "@preview/lemmify:0.1.8": *

#let (  theorem, lemma, corollary,
  remark, proposition, example,
  proof, rules: thm-rules
) = default-theorems("thm-group", lang: "en", thm-numbering: thm-numbering-linear)

#show: thm-rules

#set heading(numbering: "1.")

= Heading

#theorem()[Example]

== Heading

#theorem()[Example]

== Heading

#theorem()[Example]

Edit: In my actual main document the numbering of this package seems to be all over the place. I don’t know what is going on with that.

Edit 2: I also tried to apply this answer but got a deep stack trace in typst 0.14

According to the Typst Universe page max-reset-level: 0 is the correct setting.

It works!

#import "@preview/lemmify:0.1.8": *

#let (  theorem, lemma, corollary,
  remark, proposition, example,
  proof, rules: thm-rules
) = default-theorems("thm-group", lang: "en", thm-numbering: thm-numbering-linear, max-reset-level: 0)

#show: thm-rules

#set heading(numbering: "1.")

= Heading

#theorem()[Example]

== Heading

#theorem()[Example]

== Heading

#theorem()[Example]

Triple backticks must be on a standalone line for it to work.