Sha256: 43c77ae5ff851bfdfdbfa37278ed3631949a46352193fb222989251d695c276d
Contents?: true
Size: 412 Bytes
Versions: 6
Compression:
Stored size: 412 Bytes
Contents
require_relative 'parser' require_relative 'mathml' require_relative 'html' module AsciiMath module CLI def self.run(args) asciimath = args.last output = '' if args.length == 1 || args.first == "mathml" output = AsciiMath.parse(asciimath).to_mathml elsif args.first == "html" output = AsciiMath.parse(asciimath).to_html end puts output end end end
Version data entries
6 entries across 6 versions & 2 rubygems