Closed myitcv closed 7 months ago
What's the failure? I don't see any output
What's the failure? I don't see any output
Apologies, now fixed up. I also fixed up the sequence of commands to make clear that it is definitely https://github.com/alecthomas/chroma/commit/6dd9f269efaa029531b198c3c803f07dc7343c77 that broke Hugo in this case.
The output changed slightly, in that the styles are now compressed. Are you sure this isn't just a whitespace difference?
It looks like that's exactly what the issue is.
If that's a real concern, we can add the compress state to the cache key.
Goodness, I don't know what I did here. I totally missed the line:
/* LineHighlight */ .chroma .hl { background-color:#3c3d38 }
in the actual output. I must have grepped entirely the wrong thing.
Apologies for the noise here, and appreciate the quick response.
Is there an existing issue for this?
Describe the bug
Upgrading Hugo to use the pseudo-version of chroma implied by https://github.com/alecthomas/chroma/commit/6dd9f269efaa029531b198c3c803f07dc7343c77 appears to reveal a bug in chroma:
I expected the above to pass without issue but instead saw:
To Reproduce
See the above steps. I would have expected those steps to succeed, because I assume the change to introduce such a cache was meant to be backwards compatible with no changes required? At least I couldn't see any commentary in the commit message that suggested changes required in calling code.