Method: IsoDoc::Function::Inline#stem_parse
- Defined in:
- lib/isodoc/function/inline.rb
#stem_parse(node, out) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/isodoc/function/inline.rb', line 77 def stem_parse(node, out) ooml = case node["type"] when "AsciiMath" "#{@openmathdelim}#{HTMLEntities.new.encode(node.text)}"\ "#{@closemathdelim}" when "MathML" then node.first_element_child.to_s else HTMLEntities.new.encode(node.text) end out.span **{ class: "stem" } do |span| span.parent.add_child ooml end end |