matuzo / HTMHell

A collection of bad practices in HTML found on real websites.
MIT License
568 stars 67 forks source link

Prevent horizontal overflow caused by "languageless" code blocks #148

Closed ironnysh closed 6 months ago

ironnysh commented 10 months ago

Hi @matuzo, I read the HTMHell Advent Calendar 2023 on my mobile and noticed that code samples that aren't marked with a language are not covered by Prism's styles.

When the line is long (see here), it causes a horizontal overflow, so I thought I'd add this little CSS fix.

Thanks for the awesome content, and happy holidays!

matuzo commented 6 months ago

Hey! Thanks a lot for making me aware of this issue.I fixed in HTML rather than CSS. Thanks anyway!