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
kramdown
ruby-rouge
Up to ruby-rouge 3.21.0 the tests succeeded as expected. With the latest release two tests fail expecting different output.
1) Failure: TestFiles#test_/<<BUILDDIR>>/ruby-kramdown-2_3_0/test/testcases/block/06_codeblock/rouge/simple_text_to_html [/<<PKGBUILDDIR>>/test/test_files.rb:56]: --- expected +++ actual @@ -5,7 +5,7 @@ </code></pre> </div></div> -<div class=\"language-php highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nv\">$foo</span> <span class=\"o\">=</span> <span class=\"k\">new</span> <span class=\"nx\">Ba r</span><span class=\"p\">;</span> +<div class=\"language-php highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nv\">$foo</span> <span class=\"o\">=</span> <span class=\"k\">new</span> <span class=\"nc\">Ba r</span><span class=\"p\">;</span> </code></pre> </div></div> " 2) Failure: TestFiles#test_/<<BUILDDIR>>/ruby-kramdown-2_3_0/test/testcases/block/06_codeblock/rouge/multiple_text_to_html [/<<PKGBUILDDIR>>/test/test_files.rb:56]: --- expected +++ actual @@ -6,7 +6,7 @@ </code></pre> </div></div></div> -<div class=\"language-php highlighter-rouge\"><div class=\"custom-class\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nv\">$foo</span> <span class=\"o\">=</span> <span class=\"k\">new< /span> <span class=\"nx\">Bar</span><span class=\"p\">;</span> +<div class=\"language-php highlighter-rouge\"><div class=\"custom-class\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nv\">$foo</span> <span class=\"o\">=</span> <span class=\"k\">new< /span> <span class=\"nc\">Bar</span><span class=\"p\">;</span> </code></pre> </div></div></div> "
Note the class="nx" vs class="nc" output.
class="nx"
class="nc"
I reported the issue to the rouge project too rouge-ruby/rouge#1603. But it seems it is considered as "updated behavior". Can you please check and handle the change?
The text was updated successfully, but these errors were encountered:
Same failure in Fedora.
Sorry, something went wrong.
Thanks - I have updated the tests and the requirements for rouge.
gettalong
No branches or pull requests
My Environment
kramdown
ruby-rouge
Expected Behaviour
Up to ruby-rouge 3.21.0 the tests succeeded as expected. With the latest release two tests fail expecting different output.
Current Behavior
Note the
class="nx"
vsclass="nc"
output.I reported the issue to the rouge project too rouge-ruby/rouge#1603. But it seems it is considered as "updated behavior". Can you please check and handle the change?
The text was updated successfully, but these errors were encountered: