-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code block formatting surprise #92
Comments
Hi! |
Thanks, it's a lovely theme for use with Hugo. |
I've created samples and codes
All pictures have discrepancies. |
OK. It seems there is a small adjusting yet No shortcode. Height of the block is 307px. OK
Shortcode. Height of the block is 307px. OK
Shortcode with FOUR highlight lines. Height of the block is 295px. 12 px reduction!
Shortcode with FOUR highlight numbers lines. Height of the block is 295px. 12 px reduction!
Shortcode with ONE highlight line. Height of the block is 304px. 3px reduction!
Shortcode with TWO highlight lines in order. Height of the block is 301px. 6px reduction!
@alex-shpak It looks like each highlighted line eats up 3px. |
Yes, it's due to highlighted lines having |
Great progress! Minor pixel differences should be of no concern - nobody is going to toggle quickly between the two. It was just the large jumps which surprised me, and the fact that nobody seemed to have noticed / looked into this until now. Many thanks for the fixes, I think this issue can be closed now. |
Hello - while trying out this theme, I ran into some unexpected behaviour: line formatting jumps around considerably when using different ways to delimit code blocks:
'''sh
(backticks, that is, but I'm having trouble escaping them here){{< highlight sh "hl_lines=8 15-17" >}}
{{< highlight sh "linenos=table,hl_lines=8 15-17" >}}
I don't mean the line numbering or highlights, but the fact that the layout / line spacing varies considerably between these different methods. It should be possible to reproduce this, by editing
creating-a-new-theme.md
in the example site.I'm using Hugo v0.59.0.
The text was updated successfully, but these errors were encountered: