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

Version Path
mathematical-1.6.14 lib/mathematical/corrections.rb
mathematical-1.6.13 lib/mathematical/corrections.rb
mathematical-1.6.12 lib/mathematical/corrections.rb
mathematical-1.6.11 lib/mathematical/corrections.rb
mathematical-1.6.10 lib/mathematical/corrections.rb
mathematical-1.6.9 lib/mathematical/corrections.rb
mathematical-1.6.8 lib/mathematical/corrections.rb
mathematical-1.6.7 lib/mathematical/corrections.rb
mathematical-1.6.6 lib/mathematical/corrections.rb
mathematical-1.6.5 lib/mathematical/corrections.rb
mathematical-1.6.4 lib/mathematical/corrections.rb
mathematical-1.6.3 lib/mathematical/corrections.rb
mathematical-1.6.2 lib/mathematical/corrections.rb
mathematical-1.6.1 lib/mathematical/corrections.rb
mathematical-1.6.0 lib/mathematical/corrections.rb
mathematical-1.5.12 lib/mathematical/corrections.rb
mathematical-1.5.0 lib/mathematical/corrections.rb
mathematical-1.4.2 lib/mathematical/corrections.rb
mathematical-1.4.1 lib/mathematical/corrections.rb
mathematical-1.4.0 lib/mathematical/corrections.rb