-
Notifications
You must be signed in to change notification settings - Fork 904
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
Docsy SCSS overriding Hugo 0.60+ highlight style #214
Comments
Thanks for spotting that, I'll take a look. |
@kmuncie yeah, therefore I've configured the Prism.JS to highlight code in my custom theme docsy. So, I dont have to depend if Hugo change the settings for highlighting or something became overriding in theme... Regards!! ;) |
@LisaFC, any updates on this? the issue still persists. |
Thanks for the reminder! Will try to look at it this week. |
hey @LisaFC, Sorry to bother again, but any chance you could take a look at this soon :) |
Hey, sorry for the late reply (I was on vacation), I will try to get to it this week along with catching up on the day job. :) |
OK, I've fixed it but need to make sure it doesn't do anything really bizarre for people using pre-0.60 Hugo. Might do a quick survey on the mailing list.... |
One other thought is that if you don't specify a language for the block you don't get your chosen highlight formatting (it's just black text on a grey background) but I think that's a Hugo thing rather than anything in our CSS. You can get around it by setting "guessSyntax" to "true" and then all fenced code blocks end up in a highlight div (it hasn't given me anything particularly odd yet, but...). Also my fix definitely gives ok results deploying with 0.59 so I think I'll get a PR together. |
Have a look at #312. It does mean that users who update to the latest template will also need to update their config.toml files if they don't want to use Monokai, but maybe that's ok? |
Hey @LisaFC ,just tested it, everything working for me. Thanks a lot. 👍 🙏 Hugo version: |
The background colors set below seem to be overriding the native Hugo highlight styles after upgrading to Hugo 0.60+
This is especially noticeable with the darker code style themes such as the default theme of monokai as seen below:
Thank you for your time looking at this.
The text was updated successfully, but these errors were encountered: