CSS for new syntax highlighter - really necessary?

I had to tweak the blog recently and ran into the syntax highlighting breaking change in 22.1. The docs at Syntax Highlighting | Zola say

you will need to add the following CSS to your site CSS for things to display correctly:

but even without doing so the new highlighting looked fine. (Well, the structure changes did break stuff, but nothing this CSS would have fixed.) Am I missing some potential for subtle breakage here, or is that new CSS only needed if you’re going to be enabling line numbers?

2 Likes

It’s mostly for the line numbers. If it’s looking good for you, no need to add them

1 Like