Hugo is awesome (I’m still learning) and I am using it to create a website.
- There is an extra line (
<span></span>) at the beginning when I use code highlighting with line numbers. This problem is seen only in code blocks used with a collapsible code shortcode . Normal backtick code blocks don’t have this problem.
- Clone the repo
git submodule update --init --recursive
hugo server --buildDrafts
I have tried meddling with the CSS but that didn’t help.
I have tried removing new line character at the beginning of code within short code. But that didn’t help.
Any help/suggestion is much appreciated.