test/html_render_test.rb in redcarpet-3.4.0 vs test/html_render_test.rb in redcarpet-3.5.0
- old
+ new
@@ -138,18 +138,18 @@
[^1]: It provides additional information.
Markdown
html = <<-HTML.chomp.strip_heredoc
- <p>This is a footnote.<sup id="fnref1"><a href="#fn1" rel="footnote">1</a></sup></p>
+ <p>This is a footnote.<sup id="fnref1"><a href="#fn1">1</a></sup></p>
<div class="footnotes">
<hr>
<ol>
<li id="fn1">
- <p>It provides additional information. <a href="#fnref1" rev="footnote">↩</a></p>
+ <p>It provides additional information. <a href="#fnref1">↩</a></p>
</li>
</ol>
</div>
HTML
@@ -252,10 +252,16 @@
assert_equal html, render(markdown, with: [:with_toc_data])
end
def test_utf8_only_header_anchors
markdown = "# 見出し"
- html = "<h1 id=\"part-37870bfa194139f\">見出し</h1>"
+ if 1.size == 4 # 32-bit architecture
+ html = "<h1 id=\"part-a194139f\">見出し</h1>"
+ elsif 1.size == 8 # 64-bit architecture
+ html = "<h1 id=\"part-37870bfa194139f\">見出し</h1>"
+ else
+ raise "unknown integer size"
+ end
assert_equal html, render(markdown, with: [:with_toc_data])
end
def test_escape_entities_removal_from_anchor