Skip to content

Superscripts in underlined text makes the underline change size and position #1210

@winneratwin

Description

@winneratwin

Description

When using super in underlined text the line underneath the text becomes thinner and moves up above the normal underline.

This is not an ideal reading experience when 1st has an inconsistent line underneath the st portion when one would expect it to continue in the same style/format as the number before it.

example code:
#underline[1#super[st], 2#super[nd], and 3#super[rd]]

result:
image

version:
typst 0.3.0 (4b17c3f5) a.k.a. the latest git commit as of time of writing

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtextRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions