probberechts / hexo-theme-cactus

:cactus: A responsive, clean and simple theme for Hexo.
https://probberechts.github.io/hexo-theme-cactus/
MIT License
3.15k stars 783 forks source link

Allow syntax highlighting style background to flow through, rather than be overridden by theme-defined background. #277

Closed swaldman closed 3 years ago

swaldman commented 3 years ago

With apologies in advance, I have just begun to play with hexo and themes and really anything having to do with modern javascript frontends. So this might be really dumb. (Sorry also for the duplicate pull request!)

I kept messing around, trying to get syntax highlighting to work well with colorscheme: white, but the background color did not change with the syntax highlighting scheme as I would have wanted. This one-line hack did the trick. I'm not sure it was a great or the best way to do the trick, though.

probberechts commented 3 years ago

This is intentional. See https://github.com/probberechts/hexo-theme-cactus/issues/76#issuecomment-373988840 for my motivation.