-
Notifications
You must be signed in to change notification settings - Fork 41
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
Line numbering? #13
Comments
I should say I am on pandoc version When I leave out the template option above, the html body is the same but the line numbers do show (It is magic to me where the actual numbers come from but that's unrelated :)). I also tried with |
I wonder if this is related? It is quite old... The line numbers seem to be there, but shifted somehow. If I disable the CSS styling (close to the pointer in the image below), they appear. Sorry for my clumsy attempts at debugging this. |
It should be easy to determine whether it's a CSS related issue or a problem with the highlighter not producing the line numbers — in the former, inspection of HTML contents should reveal the line numbers, which might be hidden due to CSS problems, whereas in the latter the line numbers should not be present in the generated HTML. I don't remember exactly whether line-numbers are added by Skylighting (the syntax highlighter library) or pandoc itself. But chances are that when using a syntax highlighter with auto-detection of the language, if the highlighter fails to detect a language (and thus to syntax highlight at all), it might be the case that line-numbers are not generated (since the highlighter might be bypassed), so in this respect different highlighters might work differently. It might be the case that the CSS needs tweaking, although I thought I had covered line-numbering styles — I surely did for Highlight, which is the external highlighter that I use most with pandoc, rather than the built-in Skylighting. Anyhow, if the problem is CSS related it should be easy to fix. If you have a solution, please create a pull request, otherwise allow me some time to find a free afternoon where I can look into it. |
Sure, no rush. I am quite sure that it is a CSS thing, because the html body is exactly the same with your or the default template (where it works as expected). |
First off, many thanks for these goodies, they are really nice!
This is a question rather than an issue/feature request: I do not seem to be able to get visible line numbering working with your github html5 theme. Could you point out any obvious errors please?
I am working on the following markdown file, using the newest version of GitHub.md from this repo.
I produce html like this:
The resulting html does not include line numbers when rendered in my browser.
The relevant part of the source is this.
Can you point me to the right direction? Many thanks!
The text was updated successfully, but these errors were encountered: