Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> for some reason not immediately apparent to me

The CSS that sets the background of the code elements (so they properly cover up the ones under them) is attached to the hljs class, which is added to those elements by highlight.js.

No JS > no classname added > no background style > jank



Thanks for pointing this out to me! I'll see if I can pre-render the syntax highlighting like I do with KaTeX and stuff. No reason to do that on the client.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: