xianmin / hugo-theme-jane

A readable & concise theme for Hugo
https://xianmin.github.io/hugo-theme-jane/
MIT License
918 stars 285 forks source link

Dark code block on white website #340

Closed paskal closed 2 years ago

paskal commented 2 years ago

Hi there!

I'm adding the following text to my post:

```yaml
# test
```

Here is what I see on the latest macOS with a dark theme both in Safari and Chrome:

image

White stripes point towards the fact that "background" is overwritten to white (#f8f5ec to be precise) somewhere but in the wrong place.

M4THYOU commented 2 years ago

any fix for this? I'm seeing the same problem

M4THYOU commented 2 years ago

Solution is in #133

You need to add those lines to your config.toml.

paskal commented 2 years ago

PygmentsUseClasses = true helped me, thanks for the hint!