Fix UTF-8 in headers
This commit is contained in:
@@ -126,7 +126,11 @@ module Gollum
|
|||||||
node.add_child(%Q{<a href="##{h_name}">#{h.content}</a>})
|
node.add_child(%Q{<a href="##{h_name}">#{h.content}</a>})
|
||||||
tail.add_child(node)
|
tail.add_child(node)
|
||||||
end
|
end
|
||||||
toc = toc.to_xml(@to_xml) if toc != nil
|
if toc != nil
|
||||||
|
# convert to HTML first before XHTML
|
||||||
|
toc = Nokogiri::HTML::fragment toc.to_s
|
||||||
|
toc = toc.to_xhtml(:encoding => 'UTF-8')
|
||||||
|
end
|
||||||
[doc, toc]
|
[doc, toc]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user