Method: IsoDoc::Function::Inline#stem_parse
- Defined in:
- lib/isodoc/function/inline.rb
#stem_parse(node, out) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/isodoc/function/inline.rb', line 75 def stem_parse(node, out) ooml = case node["type"] when "AsciiMath" then asciimath_parse(node) when "MathML" then mathml_parse(node) when "LaTeX" then latexmath_parse(node) else HTMLEntities.new.encode(node.text) end out.span class: "stem" do |span| span.parent.add_child ooml end end |