Stop anchor highlighting

This commit is contained in:
Arran Cudbard-Bell
2012-05-09 15:37:42 +02:00
parent 38c943d564
commit 8435daa598
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ module Gollum::Extensions
def insert_anchors
find_headings.each do |h|
rep_h = Nokogiri::XML::Node.new('a', @doc)
rep_h['name'] = anchor_id(h.content)
rep_h['class'] = 'wiki-toc-anchor'
rep_h['id'] = anchor_id(h.content)
rep_h.add_child(h.clone)
h.replace(rep_h)
end