Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carbon turns != into #1524

Open
JakobDev opened this issue Jun 11, 2024 · 1 comment
Open

Carbon turns != into #1524

JakobDev opened this issue Jun 11, 2024 · 1 comment
Labels

Comments

@JakobDev
Copy link

Describe the bug
Carbon turns != into .

To Reproduce
Select Go as Language and paste this code:

if a != b {
  return false
}
  1. Go to '…'
  2. Click on '…'
  3. See error

Expected behavior
!= should be in the code and not ..
It's in the code I pasted. is not even valid Go code.
At least there should be an Option to turn this auto replacement off.

Screenshots
Unbenannt

Info (please complete the following information):

@JakobDev JakobDev added the bug label Jun 11, 2024
@themowski
Copy link

themowski commented Jul 10, 2024

The default font is Fira Code with ligature support enabled. Switch to a font that does not use ligatures to resolve this. For example, using Inconsolata instead:
https://carbon.now.sh/?bg=rgba%28248%2C231%2C28%2C0%29&t=blackboard&wt=none&l=text%2Fx-go&width=1280&ds=false&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=0px&ph=0px&ln=true&fl=1&fm=Inconsolata&fs=14px&lh=152%25&si=false&es=2x&wm=false&code=if%2520a%2520%21%253D%2520b%2520%257B%250A%2520%2520return%2520false%250A%257D

Adding support for disabling ligatures was requested in #1088 and the resolution there was no action, since you can upload your own font without ligatures and use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants