Sha256: a90861fd1d743e7bf8bc5db30160516e30416ca5ab8a50d614611d43333f4ada
Contents?: true
Size: 378 Bytes
Versions: 30
Compression:
Stored size: 378 Bytes
Contents
# frozen-string-literal: true module Kitchen module Directions # Wraps any math contained in a <p> tag # with a <span> with class 'os-math-in-para' module BakeMathInParagraph def self.v1(book:) book.search('p m|math', '//p//math | //p//m').each do |math| math.wrap("<span class='os-math-in-para'>") end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems