Sha256: 16a221fe0ad71e12345300668c18ea500f2c6843e5551a7f9abbe2aa123d335c

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

require "mathml2asciimath"

STDIN.set_encoding("UTF-8")
while a = gets
  matches = a.split(%r{(<math.*?</math>)})
  out = ""
  matches.each do |x|
    out += if /<math/.match? x
             MathML2AsciiMath.m2a(x)
           else
             x
           end
  end
  print out
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mathml2asciimath-0.0.14 bin/m2a.rb
mathml2asciimath-0.0.13 bin/m2a.rb
mathml2asciimath-0.0.12 bin/m2a.rb
mathml2asciimath-0.0.11 bin/m2a.rb