Sha256: 5ec0fbf56c0c7dcdbbd07aa850ce2403095ed34bcb5cecf9682ef8bbb861710b
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 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.1.1-java | lib/latex/decode/maths.rb |
latex-decode-0.1.1 | lib/latex/decode/maths.rb |