# frozen_string_literal: true module Kitchen::Directions::BakeTheorem class V1 def bake(theorem:, number:) theorem['use-subtitle'] = true new_subtitle = theorem.title.cut theorem.wrap_children(class: 'os-note-body') note_body = theorem.first('.os-note-body') note_body.prepend(sibling: <<~HTML