KevinBatdorf / code-block-pro

A Gutenberg code block with syntax highlighting powered by VS Code
https://code-block-pro.com
132 stars 10 forks source link

Operators in the python program are treated as html entity #261

Closed Dev-NeelPrakash closed 1 year ago

Dev-NeelPrakash commented 1 year ago

Hi Kelvin,

First of all i would like to express my gratitude for development of such a wonderful plugin. I am facing an issue over with this plugin, whenever i use <= or >= != operators in my code, the plugin treats them as html entity and change the formatting. can you please help. Thanks.

code 2 code 1

Dev-NeelPrakash commented 1 year ago

I figured out, it occurs only if the font type is JetBrains Mono, changed the font for now. Thanks.

KevinBatdorf commented 1 year ago

Hey, yeah those are actually font ligatures. Some people like them, some don't. I've included a few fonts without ligatures you can try out, including "JetBrains Mono (No Ligatures)"