-
Notifications
You must be signed in to change notification settings - Fork 17
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
Bug / #371
Comments
just turn off the "bold" highlighting of the define block or use another font |
@AndiDittrich thanks for the quick reply. |
you have to customize the theme.. |
I already customized the theme. I don't see any bold property in any line. Are we talking about the same block? How can bold on the define line influence the \ of the other lines that are all misaligned? |
you're using source code pro as monospace font. bold styles are changing the character-width and therefore you're seeing additional indentations. the font styles are controlled by the theme and can be customized |
in your special case, you have to add the font file style explicitly to your website - otherwise the generic source code pro (regular) is used and interpolated as bold example: <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:regular,bold,bolditalic" rel="stylesheet" /> |
Can you please point to the bold properties that you see? I am exploring the but I cannot see those. Also looking at the highlighting something is wrong. The stray \ in C makes the define continue to the next line. The plugin doesn't recognize that |
Now I get it. Still, I believe there is a problem with the parsing. Also I did not customized the the font type. My customer theme is just defining colors
The font is coming from the default theme so I was expecting that would automatically include the proper font. |
i cannot see any additional issues. where's the parsing error located ? |
|
Thanks for the clarifications. I will enqueue the font into my theme |
Hi Andi, I just added the font but I don't see the first line getting bold nor the alignment get any better: If you look at the strays you will notice that they are not aligned also |
i cannot see any external fonts loaded.. but please debug it on your own - i didn't have the time to provide this level of support :( |
within the dev env everything works as expected with your code (see screenshot above). not an EnlighterJS issue |
WordPress Version
6.1.1
Enlighter Version
4.6.1
Editing method
Gutenberg Blocks
What happened?
Extra space in the highlighted code (C Language)
The block in the article
https://www.playembedded.org/blog/how-to-leverage-board-files-in-chibios/
about the "the configuration for PortA" is misaligned.
The code is perfectly aligned if copied and paste in a code editor and also in Guttenberg but it gets rendered with an extra space
Looking at the strays it looks like something got messed up with the font in use but I could not find the root cause
What browsers are you seeing the problem on?
No response
Your settings (debug)
No response
I've read the docs/troubleshooting guidelines
The bug/issues appears in a clean WordPress environment
The text was updated successfully, but these errors were encountered: