carpentries / varnish

Template for pkgdown site
https://carpentries.github.io/varnish/
Other
7 stars 25 forks source link

Fix code colouring and style #103

Closed zkamvar closed 10 months ago

zkamvar commented 10 months ago

I ran the sandpaper-docs with 0.3.2 and found that the code blocks are borked:

a code block with striping for each line

That's on me. I reviewed the PRs that went through.

I've fixed this so that the code blocks no longer have that weird striping and so that the inline code is a bit more visible (I got rid of the default boostrap formatting) a normal code block with a grey background text with code emphasized and a bit bigger and a different font than the rest of the text

zkamvar commented 10 months ago

I have confirmed that this works with the integration test, so I will merge and release

zkamvar commented 10 months ago

Note: this is not quite right because, while this will correctly transform all bare code (with no class) to use black, it will only transform the code that are directly under <p> elements to have a font size of 1em and a white background color, which does not affect code elements under <li>, <dt> or <dd>.