Sha256: 63f6e86e7e34c6980db07813907c02622020c96e604320c76f0ee0a9f083db48
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
# AsciiMath An [AsciiMath](http://asciimath.org) parser and MathML generator written in pure Ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem 'asciimath' ``` And then execute: $ bundle Or install it yourself as: $ gem install asciimath ## Usage ### Library First require the library. ``` require 'asciimath' ``` Then parse an AsciiMath string. ``` parsed_expression = AsciiMath.parse(asciimath) ``` The parsed expression is a set of nested Array and Hash objects. This expression can then be converted to MathML. ``` math_ml = parsed_expression.to_mathml ``` The MathML code is returned as a String. ### Command line The AsciiMath parser and MathML converter can be invoked via the command line as follows: ``` asciimath "an asciimath string" ``` This command will print out the generated MathML code on stdout. ## Contributing 1. Fork it ( https://github.com/pepijnve/asciimath/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
asciimath-1.0.3 | README.md |
asciimath-1.0.2 | README.md |
asciimath-1.0.1 | README.md |
asciimath-1.0.0 | README.md |