Sha256: 1e63603617526be1538bf01d0fc135f64ce1d3a8d1ea58cf2fd5221396bc11f7

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

module Mathematical
  module Corrections

    def apply_corrections(maths)
      maths = adjust_lt_gt(maths)
    end

    # from the itex website:
    # 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

2 entries across 2 versions & 1 rubygems

Version Path
mathematical-0.6.1 lib/mathematical/corrections.rb
mathematical-0.6.0 lib/mathematical/corrections.rb