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

Code blocks try to be too clever #91

Open
mzanetti opened this issue Oct 2, 2020 · 2 comments
Open

Code blocks try to be too clever #91

mzanetti opened this issue Oct 2, 2020 · 2 comments
Assignees

Comments

@mzanetti
Copy link
Member

mzanetti commented Oct 2, 2020

Example: https://nymea.io/documentation/users/usage/scripting

There seems to be some magic that tries to make things pretty, but this shouldn't happen within code blocks:
For example:
It will eat the space in id: foobar and make it id:foobar
It will merge characters like >= and == into a single character such as and

There's probably more which we just haven't seen yet.

@rhythm-section
Copy link
Contributor

rhythm-section commented Oct 2, 2020

Well... not sure what is happening with the ids here. But it looks like it does not remove the space from all ids. Looks like an issue with highlight.js which we use for syntax highlighting.

The other thing (>=, ==) sounds like the ligatures feature of the font we are using in the theme: FiraCode. Which is acutally a feature not a bug :) Many devs are using this font because of that. But of course this is a matter of taste. Strange thing is I do not see these ligatures in my browsers, although I have the font installed. Can you show me a screenshot?

@mzanetti
Copy link
Member Author

mzanetti commented Oct 2, 2020

image

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

No branches or pull requests

2 participants