-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Invalid highlight html with rouge and linenos #2607
Comments
Interesting... no idea why this would be. |
I can confirm this issue. I was going to create a new issue, but found this one. I was going to use 'rouge' as as my highlighter, but I need linenos, so looks like I'll have to stick with pygments. No worries. |
Did it happen in Jekyll 2.1? #2676 |
I reproduced the invalid code with jekyll 2.2.0 running Ubuntu linux and tested it by creating a brand new 'jekyll new mysite' and editing the config...... I can maybe even have a look into why this is happening in the jekyll source when I get some free time later. |
This seems to be a result of the weird |
Re-open if Jekyll v2.3.0 doesn't solve your problem! |
Still the same problem with v2.3.0. |
I also ran into this issue with |
It seems this was fixed with #3435 is this the case? |
It's fixed. |
Invalid HTML generated when highlighter set to rouge and
highlight
has optionlinenos
.For kramdown and redcarpet html is slightly different, but in both cases invalid.
Original markdown:
Resulting html for redcarpet:
Problem: code closed inside the table.
Resulting html for kramdown:
Problem: "after" inside highlighter div block, should be inside p after the block.
Reproduced with:
The text was updated successfully, but these errors were encountered: