XHTML is dead

Do not enforce the XHTML conversion for Wiki pages. HTML is cool!
This commit is contained in:
Vicent Marti
2011-12-07 18:53:51 +01:00
parent 654b5b176b
commit 8014486fd8
2 changed files with 20 additions and 24 deletions
+1 -5
View File
@@ -53,17 +53,13 @@ module Gollum
doc = Nokogiri::HTML::DocumentFragment.parse(data)
doc = sanitize.clean_node!(doc) if sanitize
yield doc if block_given?
data = doc_to_html(doc)
data = doc.to_html
end
data = process_tex(data)
data.gsub!(/<p><\/p>/, '')
data
end
def doc_to_html(doc)
doc.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
end
#########################################################################
#
# TeX