Skip to content

Comments

fix styling to avoid ligatures messing with operators, closes issue #68#69

Open
hallvard wants to merge 1 commit intojavaevolved:mainfrom
hallvard:main
Open

fix styling to avoid ligatures messing with operators, closes issue #68#69
hallvard wants to merge 1 commit intojavaevolved:mainfrom
hallvard:main

Conversation

@hallvard
Copy link

@hallvard hallvard commented Feb 20, 2026

fixed by adding two lines to CSS styling for code-text
the fix was suggested by Google's AI and tested by me

Fixes #68

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #68 where Java operators like -> and != were being rendered as special Unicode characters (→ and ≠) due to font ligatures in the JetBrains Mono font. The fix disables these ligatures specifically for code text elements to ensure Java code displays with actual operator characters.

Changes:

  • Added CSS properties to disable font ligatures on the .code-text class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some operators are rendered as special characters that are not Java

1 participant