Skip to content

Code editor: accented characters have the wrong color #1657

@gy-mate

Description

@gy-mate

Describe the bug

Accented characters (and numerals right after them) have a different font color than non-accented ones in the code editor (except in the frontmatter).

I think that this has been introduced by #1633.

To Reproduce

Link to Live Editor: https://mermaid.live/edit#pako:eNo9kDtuAyEQhq9iTb221vuGNm5TJVVEg4H1PsECVolj-RA5gssUKSxLLqx0aO8VvE4C4vEP3_yDZg9McQEY5vM5kba2ncAzoTdiPLmju1JjeIncpSVyAogsO_XKKqrt7Hl10zM_upZx4-HxZNyRU3OP8tY0suGt-3Ln8cN9uqP3vG69_HYX5Lezn1f_ckFDHEeobaShxXgqDCvuDqxtzJqZpq34mhEJAfRC97Tm_r_7G0LAVqIXBLC_clHSobMEiDx4lA5WPe0kA2z1IALQathUgEvaGa-GLadWrGq60bT_j26pfFGq_0vZ6Fup33QhudAPapAWcLTMUQCC11bpx3v_pjZODoD38OaZPFxEKA1TlOVZlPgjgB3guIgWISoSVIRhkiTLPD0E8D4VDRdpmBVZnod-pVmWxocfmCeWXw

Expected behavior

Accented characters have the same font color than non-accented ones.

Screenshots

Image Image

Desktop

  • OS: macOS 15.3.2
  • Browser: Safari 18.3.1
  • Mermaid 11.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions