lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
651 stars 363 forks source link

Problem with Syntax Highlighting - white background #363

Closed WinOpsDBA closed 1 year ago

WinOpsDBA commented 2 years ago

Describe the bug White highlight in a code section (see screenshot)

To Reproduce Install the theme as per instruction. Test with another theme and it is working fine

Expected behaviour Code highlights without white bacground

Screenshots code_higlighting

Desktop (please complete the following information):

WinOpsDBA commented 2 years ago

I am new to the Hugo, please help.

lxndrblz commented 2 years ago

@WinOpsDBA What's the code snippet that you had used?

WinOpsDBA commented 2 years ago

I am using it for terraform code.

lxndrblz commented 2 years ago

@WinOpsDBA Hi there, I tried to reproduce your error, but only got this result:

image

I had used the following snippet in the latest theme: image

I am wondering what you might have done differently. 🤔

WinOpsDBA commented 2 years ago

Good morning @lxndrblz, Would you like to try it with monokailight, please?

my current config

pygmentsCodeFences = true
pygmentsUseClasses = true
customCss = ["css/syntax.css"]

When I look at the website generated by Hugo server I can see the following server

When I open a static website from the drive I ma getting this static

Thank you for looking into it for me, much appreciated.

lxndrblz commented 2 years ago

@WinOpsDBA It seems you are loading a custom css file. Did you try the code highlighting that comes with Anatole?

martinolmos commented 2 years ago

I have a similar issue. Bottom line is that the highlighting style is different than what is supposed to be. I understand that the default Chroma style for Anatole is Monokailight. This is how this theme should look like according to this Chroma style gallery:

image

And this is how it looks like in my blog:

image

Looks like a totally different style. Any ideas how to correct this issue?

lxndrblz commented 2 years ago

@martinolmos I've just tried the snippet from your top image and it works perfectly for me.

image

I imagine the second one looks different because it is python and not Go. Do you know what it supposed to look like?

martinolmos commented 2 years ago

Ok, thank you very much for answering. I see in the image that you provided that the colours are correct, but the font family is different, right?

lxndrblz commented 2 years ago

@martinolmos Correct. This should be a serif/monospace font.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.