Sha256: 8cf5d87d52a8f56550cff070f63b3719e9090321d209f556bda4e422d0e1c587

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
mathematical-1.6.20 lib/mathematical/corrections.rb
mathematical-1.6.18 lib/mathematical/corrections.rb
mathematical-1.6.17 lib/mathematical/corrections.rb