Open FirstVertex opened 5 years ago
It doesn't look like this code is maintained, but I had the same problem.
Copy and paste this code at the top of your theme file:
.styleguide pre { color: #000080; }
Essentially it colors everything in the pre tag blue, then lets highlight color the attributes and classes. It is a bit hacky, but works.
Hi y'all. Great lib and I'm loving it. Thanks for your work.
I have a small problem with some Syntax Highlighting not rendering text properly.
Here's a picture of what is rendered:
See how the text inside the code is rendered all different colors? And I would expect the H1 tag itself to not be white, similar to the Div.
Here's the SCSS and the comment that's generating this:
This is the header
Some text in the headerHere is the contents of my
.styleguide
file. I have doctored it to use relative paths that reference a project above the doc project's root. Also to reference my localhighlight.js
andvs
theme.Here's the relevant lines from my
package.json
Appreciate any help you could provide! 🍺