Sha256: bf01d853a5236e0ee716900e29fea61eca5c0b9ce6681ef19199f2bb9f2db401
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module Kitchen module Directions module BakeAutotitledNotes def self.v1(book:, classes:) book.notes.each do |note| next unless (note.classes & classes).any? bake_note(note: note) end end def self.bake_note(note:) BakeNoteIFrames.v1(note: note) note.wrap_children(class: 'os-note-body') BakeNoteSubtitle.v1(note: note) note.prepend(child: <<~HTML <h3 class="os-title" data-type="title"> <span class="os-title-label">#{note.autogenerated_title}</span> </h3> HTML ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems