-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Not the good number of lines #1946
Comments
There is the good number!! I just don't have the good line height. Sorry for that! |
However, how can I change the line height of the line numbers? |
It's important that both the Btw. What theme is that? |
It is the Github theme: https://github.com/PrismJS/prism-themes/blob/master/themes/prism-ghcolors.css This is strange because, with the default theme, the line numbers have the good line-height but with this theme they don't... |
Alright. The problem is the following line: code[class*="language-"],
pre[class*="language-"] {
...
font-size: 0.95em;
...
} This means that for a code block I don't quite get why, but just enforcing that the font size of |
In fact, your fix works for me! Thank you :) |
Going to close this issue, since the fix is in prism-themes. |
This fixes [prism#1946](PrismJS/prism#1946). The problem was that the `<code>` element nested inside the `<pre>` element has to have the same font size as the `pre`. I added a little rule to nearly every theme to enforce just this. ```css pre > code[class*="language-"] { font-size: 1em; } ``` --- This also enforces tabs for indentation for all theme.
Hi,
I tried the line numbers plugin. However, with the following code:
I get the following output:
Any idea?
The text was updated successfully, but these errors were encountered: