-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(typst): inline-math crashes #1605
Comments
I managed to track the bug to the upstream #set page(height: auto, width: auto, margin: 0pt)
#let s = state("t", (:))
#let pin(t) = locate(loc => {
style(styles => s.update(it => it.insert(t, measure(line(length: loc.position().y + 0.25em), styles).width) + it))
})
#show math.equation: it => {
box(it, inset: (top: 0.5em, bottom: 0.5em))
}
$pin("l1")x$
#locate(loc => [
#metadata(s.final(loc).at("l1")) <label>
]) generates an error upon compilation with |
Created an upstream PR here: Myriad-Dreamin/typst.ts#604 |
Yeah we can let dependabot to do it so no worries. Thanks for leading the work. |
Upstream branch got merged. Should only require version update to close this. |
I think once the dependabot upgrade it we can check it again and close it. Thanks for the work upstream. |
This is now fixed upstream and the dependabot PR is included. |
see #1569
The text was updated successfully, but these errors were encountered: