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

Problems in code blocks with blank lines #16

Open
li-xin-yi opened this issue Oct 24, 2017 · 0 comments
Open

Problems in code blocks with blank lines #16

li-xin-yi opened this issue Oct 24, 2017 · 0 comments

Comments

@li-xin-yi
Copy link

I notice that code blocks will automatically leave out blank lines in source code, but line numbers of those lines still remain. It looks like
image
But I want something like
image

So I try to fix it by adding

.highlight .line{
  height: /*some fixed value*/ ; 
}

to hexo-theme-bootstrap-blog/source/css/highlight-js.css

It just works. But sorry for my ignorance of programming, I hope you the author can help me figure out a more reliable solution. Thanks 🙏

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

1 participant