module Kitchen::Directions::BakeMathInParagraph
Wraps any math contained in a <p> tag with a <span> with class 'os-math-in-para'
Public Class Methods
v1(book:)
click to toggle source
# File lib/kitchen/directions/bake_math_in_paragraph.rb, line 8 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