class LaTeX::Decode::Maths

Public Class Methods

decode!(string) click to toggle source
# File lib/latex/decode/maths.rb, line 9
def self.decode!(string)
  patterns.each do |pattern|
    string.gsub!(pattern) do
      LaTeX.to_math_ml($1)
    end
  end
  string
end