Stop anchor highlighting
This commit is contained in:
@@ -43,7 +43,8 @@ module Gollum::Extensions
|
|||||||
def insert_anchors
|
def insert_anchors
|
||||||
find_headings.each do |h|
|
find_headings.each do |h|
|
||||||
rep_h = Nokogiri::XML::Node.new('a', @doc)
|
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)
|
rep_h.add_child(h.clone)
|
||||||
h.replace(rep_h)
|
h.replace(rep_h)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ a.absent {
|
|||||||
color: #c00;
|
color: #c00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown-body a[id].wiki-toc-anchor {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
|||||||
Reference in New Issue
Block a user