lib/kitabu/toc/html.rb
def tag(node) # :nodoc:
        toc << {
          level: node.name.gsub(/[^\d]/, "").to_i,
          text: node.text,
          permalink: node["id"]
        }
      end
# Return the table of contents in hash format.
#
Return the table of contents in hash format.
Return the table of contents in hash format .
def tag(node) 
        toc << {
          level: node.name.gsub(/[^\d]/, "").to_i,
          text: node.text,
          permalink: node["id"]
        }
      end
def tag ( node ) toc << { level : node . name . gsub ( / [^ \d ] / , "" ) . to_i , text : node . text , permalink : node [ "id" ] } end
Return the table of contents in hash format.
Return the table of contents in hash format .
# :nodoc:
node