typst-pinit
typst-pinit copied to clipboard
Highlighting broken inside of aligned equations
The following example looks broken:
#import "@preview/pinit:0.1.3": *
We have a #pin(1)Special#pin(2) map $
#pin(3)f#pin(4) -> #pin(5)g#pin(6)
$
#pinit-highlight(1, 2)
#pinit-highlight(3, 4)
#pinit-highlight(5, 6)
Render:
Making the equation inline turns out like it should.
I don't know exactly why yet, but you can try:
#import "@preview/pinit:0.1.3": *
#pinit-highlight(1, 2)
#pinit-highlight(3, 4)
#pinit-highlight(5, 6)
We have a #pin(1)Special#pin(2) map $
#pin(3)f#pin(4) -> #pin(5)g#pin(6)
$