Merge pull request #628 from arr2036/fix_titles

Fix page titles for non markdown formats
This commit is contained in:
bootstraponline
2013-02-04 15:47:17 -08:00
+1 -1
View File
@@ -116,7 +116,7 @@ module Precious
# Finds header node inside Nokogiri::HTML document.
#
def find_header_node(doc)
case self.format
case @page.format
when :asciidoc
doc.css("div#gollum-root > div#header > h1:first-child")
when :org