class AlgoliaHTMLExtractor
def heading_weight(heading_level)
Get a relative numeric value of the importance of the heading
#
def heading_weight(heading_level) weight = 100 return weight if heading_level.nil? weight - ((heading_level + 1) * 10) end
def heading_weight(heading_level) weight = 100 return weight if heading_level.nil? weight - ((heading_level + 1) * 10) end