Skip to content
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 line numbers are misaligned #640

Closed
jmooring opened this issue Aug 9, 2024 · 2 comments
Closed

Code block line numbers are misaligned #640

jmooring opened this issue Aug 9, 2024 · 2 comments

Comments

@jmooring
Copy link

jmooring commented Aug 9, 2024

Using the exampleSite without modification...

mardkown

```text {linenos=table}
aaaa
bbbb
cccc
dddd
eeee
ffff
gggg
hhhh
```

rendered

image

But this renders as expected:

```text {linenos=inline}
aaaa
bbbb
cccc
dddd
eeee
ffff
gggg
hhhh
```
@alex-shpak
Copy link
Owner

Hi! Thanks, I will take a look

@alex-shpak
Copy link
Owner

Fix has been pushed, took some time to figure out
Problem is that code block numbers generated as inline spans, but lines with code are flex leading to difference in height.

Hanekihyouka pushed a commit to Hanekihyouka/hugo-book that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants