Fix the highlight tag feature
Previously, the assertion made wasn't enough to check whether the code block was correctly parsed through Pygments (and it was not the case). This commit simply ensure there is a div with the "highlight" class and fix the test to correctly invoke the Liquid tag rendering.
This commit is contained in:
parent
354b4b9c54
commit
903cce2745
|
@ -24,6 +24,7 @@
|
||||||
### Development Fixes
|
### Development Fixes
|
||||||
* Add a link to the site in the README.md file (#1795)
|
* Add a link to the site in the README.md file (#1795)
|
||||||
* Add in History and site changes from `v1-stable` branch (#1836)
|
* Add in History and site changes from `v1-stable` branch (#1836)
|
||||||
|
* Fix the `highlight` tag feature
|
||||||
|
|
||||||
### Site Enhancements
|
### Site Enhancements
|
||||||
* Document Kramdown's GFM parser option (#1791)
|
* Document Kramdown's GFM parser option (#1791)
|
||||||
|
|
|
@ -91,11 +91,12 @@ Feature: Site configuration
|
||||||
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Highlight code with pygments
|
Scenario: Highlight code with pygments
|
||||||
Given I have an "index.html" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
||||||
And I have a configuration file with "pygments" set to "true"
|
And I have a configuration file with "highlighter" set to "pygments"
|
||||||
When I run jekyll
|
When I run jekyll
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "puts 'Hello world!'" in "_site/index.html"
|
And I should see "Hello world!" in "_site/index.html"
|
||||||
|
And I should see "class=\"highlight\"" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Set time and no future dated posts
|
Scenario: Set time and no future dated posts
|
||||||
Given I have a _layouts directory
|
Given I have a _layouts directory
|
||||||
|
|
Loading…
Reference in New Issue