gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
76.28k stars 7.55k forks source link

Missing some Chroma elements in >= 0.93.0 #10338

Open bep opened 2 years ago

bep commented 2 years ago

This was when Chroma added a level of span, which hugo_stats.json doesn't seem to pick up.

image
bep commented 2 years ago

It's not obvious to me what's happening here -- I failed to create a simple failing test.

jmooring commented 2 years ago

https://github.com/gohugoio/hugo/blob/master/publisher/htmlElementsCollector.go#L37

With pre in the regex, we're skipping the code block.