Sha256: ef2b0dafaa474bcedbe0073a5be9d4bd03412dd9e2c706fe00f72af2bbeb50cd
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
module LaTeX module Decode class Maths < Decoder @patterns = [ /\$([^\$]+)\$/ ].freeze def self.decode!(string) patterns.each do |pattern| string.gsub!(pattern) do LaTeX.to_math_ml($1) end end string end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
latex-decode-0.4.0 | lib/latex/decode/maths.rb |
latex-decode-0.3.2 | lib/latex/decode/maths.rb |