Sha256: 670a89b320e7b9b4016a109565f4193beddfd9d0e2121800632d0ce5e553ae68
Contents?: true
Size: 482 Bytes
Versions: 27
Compression:
Stored size: 482 Bytes
Contents
class Mathematical module Corrections def apply_corrections(maths) adjust_lt_gt(maths) end # from the itex website: http://bit.ly/1Et74ed # It is possible (though probably not recommended) to insert MathML markup # inside itex equations. So "<" and ">" are significant. # To obtain a less-than or greater-than sign, you should use \lt or \gt, respectively. def adjust_lt_gt(maths) maths.gsub(/</, '\lt').gsub(/>/, '\gt') end end end
Version data entries
27 entries across 27 versions & 1 rubygems