Sha256: e409cbf773691894fdbcc9459f9c18e43e4268767ab6fcb7dfeb3bd162ace34b
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module Kitchen module Directions # Bake directions for LO link labels module BakeLOLinkLabels def self.v1(book:) book.search('a.lo-reference').each do |anchor| anchor.wrap_children('span', class: 'label-counter') anchor.prepend(child: <<~HTML <span class="label-text">#{I18n.t(:lo_label_text)}</span> HTML ) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems