Method: IsoDoc::Function::Inline#stem_parse
- Defined in:
- lib/isodoc/function/inline.rb
#stem_parse(node, out) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/isodoc/function/inline.rb', line 84 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 |