typst icon indicating copy to clipboard operation
typst copied to clipboard

Highlight Offset Mismatch with Subscript and Superscript Text

Open f3fora opened this issue 2 years ago • 3 comments

Description

As you can see in the following example, none of the combinations of #sub or #super with #highlight produces the expected results. In particular the offset of the highlight do not match the offset of superscript or subscript text.

Reproduction URL

https://typst.app/project/r4EHGvxFzw0JlWTqH_zXm_

Operating system

No response

Typst version

  • [X] I am using the latest version of Typst

f3fora avatar Feb 09 '24 11:02 f3fora

@f3fora please make the project public.

owiecc avatar Feb 09 '24 12:02 owiecc

Sorry! I have updated the link. https://typst.app/project/r4EHGvxFzw0JlWTqH_zXm_

f3fora avatar Feb 09 '24 12:02 f3fora

What should be the correct behavior? Should the line be highlighted at its regular height, or should the highlight stick to the sub/superscript?

A-Walrus avatar Mar 01 '24 15:03 A-Walrus