instiki/vendor/plugins/maruku/lib/maruku/ext/math/mathml_engines/none.rb

26 lines
522 B
Ruby

module MaRuKu; module Out; module HTML
def convert_to_mathml_none(kind, tex)
# You can: either return a REXML::Element
# return Element.new 'div'
# or return an empty array on error
# return []
# or have a string parsed by REXML:
begin
require 'itex_stringsupport'
rescue LoadError
require 'instiki_stringsupport'
end
tex = tex.escapeHTML
mathml = "<code>#{tex}</code>"
return Document.new(mathml).root
end
def convert_to_png_none(kind, tex)
return nil
end
end end end