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
Unclosed rouge highlighting #4432
Comments
I just noticed that it's rendered correctly if I remove the |
If you inspect the element and futz around with the CSS, is it fixable by modifying the CSS? |
I updated the first post with reformated HTML to make it more obvious. The problem is that the generated HTML does not close the |
I have to update my blog in Github page from pygment to rouge today. I also meet this bug when I used the linenos option. The last highlight block by
|
This looks to me like a strange liquid parsing issue. Could you open a PR with a failing test cases for this inside of |
@parkr see the mentioned PR - I thought that there there is Travis here or something. I tried running the tests locally, but it does not seem to work as per instructions in |
Full blog code here: https://github.com/tomasfejfar/blog |
This issue has been automatically marked as stale because it has not been commented on for at least The resources of the Jekyll team are limited, and so we are asking for your help. If you can still reproduce this error on the If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced Thank you for all your contributions. |
Any news? This is also happening to me. |
I still face this too :( |
Far anyone experiencing this issue, could you confirm that it works with latest release of Jekyll who provides support for Rouge 2 and Liquid 4 ? gem install jekyll
bundle update
bundle exec jekyll serve For my test case I didn't touch the default {% highlight ruby linenos %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
{% highlight php linenos %}
<?php phpinfo(); ?>
{% endhighlight %} Code blocks are properly highlighted with line numbers: |
@DirtyF it's still happening to me. But in my case it seems related to this issue with jekyll-compress-html. |
@M451 what version of jekyll are you on? if it's the latest one, could you open a new issue? |
@M451 and if you don't use the compress layout in base layout? |
@DirtyF it doesn't happen when I don't use the compress layout. Thus for now I've thrown that out. But I believe it's more a issue with the compress layout rather then Jekyll per-se. |
@M451 Instead of the compress layout, you can give a try to jekyll-tidy plugin who has a html compression option. |
I have a post:
And it generates this:

Actual HTML:
My config (relevant part):
Could this be theme issue? And if so, how could I debug it? It seems to me like a problem in parsing the closing
endhighlight
tag...The text was updated successfully, but these errors were encountered: