add documentation comment
This commit is contained in:
@@ -72,6 +72,11 @@ module Gollum
|
|||||||
data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Inserts header anchors and creates TOC
|
||||||
|
#
|
||||||
|
# doc - Nokogiri parsed document
|
||||||
|
#
|
||||||
|
# Returns doc Document and toc String
|
||||||
def process_headers(doc)
|
def process_headers(doc)
|
||||||
toc = nil
|
toc = nil
|
||||||
doc.css('h1,h2,h3,h4,h5,h6').each do |h|
|
doc.css('h1,h2,h3,h4,h5,h6').each do |h|
|
||||||
|
|||||||
Reference in New Issue
Block a user