Module: Mathematical::Corrections
- Included in:
- Mathematical
- Defined in:
- lib/mathematical/corrections.rb
Instance Method Summary collapse
-
#adjust_lt_gt(maths) ⇒ Object
from the itex website: bit.ly/1Et74ed It is possible (though probably not recommended) to insert MathML markup inside itex equations.
- #apply_corrections(maths) ⇒ Object
Instance Method Details
#adjust_lt_gt(maths) ⇒ Object
from the itex website: 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.
11 12 13 |
# File 'lib/mathematical/corrections.rb', line 11 def adjust_lt_gt(maths) maths.gsub(/</, '\lt').gsub(/>/, '\gt') end |
#apply_corrections(maths) ⇒ Object
3 4 5 |
# File 'lib/mathematical/corrections.rb', line 3 def apply_corrections(maths) adjust_lt_gt(maths) end |