2007-01-22 15:36:51 +01:00
|
|
|
module MaRuKu; module Out; module HTML
|
|
|
|
|
2007-01-22 18:34:51 +01:00
|
|
|
def convert_to_mathml_none(kind, tex)
|
2007-01-22 15:36:51 +01:00
|
|
|
# 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:
|
2007-01-22 18:34:51 +01:00
|
|
|
tex = tex.gsub('&','&')
|
2007-01-22 15:36:51 +01:00
|
|
|
mathml = "<code>#{tex}</code>"
|
|
|
|
return Document.new(mathml).root
|
|
|
|
end
|
|
|
|
|
2007-01-22 18:34:51 +01:00
|
|
|
def convert_to_png_none(kind, tex)
|
|
|
|
return nil
|
2007-01-22 15:36:51 +01:00
|
|
|
end
|
|
|
|
|
2007-01-22 18:34:51 +01:00
|
|
|
|
2007-01-22 15:36:51 +01:00
|
|
|
end end end
|
|
|
|
|