diff --git a/lib/gollum/markup.rb b/lib/gollum/markup.rb index d7cb1003..300ec037 100644 --- a/lib/gollum/markup.rb +++ b/lib/gollum/markup.rb @@ -122,7 +122,7 @@ module Gollum end node = Nokogiri::XML::Node.new('li', doc) # % -> %25 so anchors work on Firefox. See issue #475 - node.add_child("#{h.content}") + node.add_child(%Q{#{h.content}}) tail.add_child(node) end toc = toc.to_xhtml if toc != nil diff --git a/test/test_wiki.rb b/test/test_wiki.rb index 9e2c2176..eaed4676 100644 --- a/test/test_wiki.rb +++ b/test/test_wiki.rb @@ -142,6 +142,16 @@ context "Wiki TOC" do assert_equal '