Redcloth::Formatters::AST

A RedCloth formatter that enables to convert .textile files to an AST.

Installation

Add this line to your application’s Gemfile:

gem 'redcloth-formatters-ast'

And then execute:

$ bundle

Or install it yourself as:

$ gem install redcloth-formatters-ast

Usage

# Compile a textile to an AST hash
textile_file = File.read 'a.textile'
ast_hash = RedCloth.new(textile_file).to_ast</code>

<code># Do something with the AST

Contributing

1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am ‘Added some feature’`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request