Hugo is awesome (I’m still learning) and I am using it to create a website.
Problem
- 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.
Link to website where you can see this.
Link to source code ( the feat/code-blocks
branch).
How to run the website from source code ?
- Clone the repo
- run
git submodule update --init --recursive
- run
hugo server --buildDrafts
What I have tried
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.