The other day I was sharing some code in my blog (static site, generated with #pelican) and I realized the syntax highlighter was adding tons of bullshit HTML to the page. It was kind of breaking #HTML #semantics and that's unacceptable.
I moved to a JS solution where the highlighting is done in client with #prism and only if the client has JS enabled. Without javascript code pieces are just <pre><code> pieces, just as they are suppossed to be.
I'm happy.
Take a look:
https://ekaitz.elenq.tech