Add header_hashtag feature option: headers display a link icon when moused over so you can jump to sections

Move anchor processing into markup.rb
Use dashes for spaces in the anchor hashtag
This commit is contained in:
kristi
2012-05-10 00:26:22 -07:00
parent 61987c85d2
commit ca74897569
6 changed files with 18 additions and 20 deletions
-1
View File
@@ -180,7 +180,6 @@ module Gollum
formatted_data if @doc == nil
toc = Toc.new(@doc)
if (toc_content = toc.generate)
toc.insert_anchors
toc.generate.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
end
end