module Jekyll::Algolia::Extractor
def self.extract_raw_records(content)
node and its headings
Public: Extract raw records from the file, including content for each
def self.extract_raw_records(content) records = AlgoliaHTMLExtractor.run( content, options: { css_selector: Configurator.algolia('nodes_to_index'), tags_to_exclude: 'script,style,iframe' } ) # We remove objectIDs, as the will be added at the very end, after all # the hooks and shrinkage records.each do |record| record.delete(:objectID) end records end