lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
205 stars 97 forks source link

Weird rendering for Markdown code blocks #83

Closed delroth closed 1 year ago

delroth commented 1 year ago

Markdown code blocks seem to not have proper colors applied to them using this Hugo theme. By markdown code block I mean:

foo

Rendering in dark mode:

image

Rendering in light mode:

image

The Hugo {{< highlight >}} blocks do render correctly, so that's usable as a workaround, but normal code blocks should probably be adjusted to use a similar styling.

delroth commented 1 year ago

Now using this in my custom.css:

.content pre {
  color: #f8f8f2;
  background-color: #272822;
}

.content pre code {
  background-color: transparent !important;
}
lukeorth commented 1 year ago

Thank you, @delroth, for another good catch! I am adding this now.