# frozen_string_literal: true module Kitchen module Directions # Bake directions for EOC suggested reading # module BakeSuggestedReading def self.v1(book:) metadata_elements = book.metadata.children_to_keep.copy book.chapters.each do |chapter| suggested_reading = chapter.search('section.suggested-reading').cut chapter.append(child: <<~HTML