Pricecut Build Status

Pricecut takes your HTML and marks it down.


Add this line to your application's Gemfile:

gem 'pricecut'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pricecut


require "pricecut"

html = <<-HTML
  <h1>Pricecut is Awesome!</h1>

    Pricecut lets me take my <strong>HTML</strong> and 
    <em>mark it down</em>.

  <p><img src="awesome.png" alt="Awesome" /></p>

# => # Pricecut is Awesome! #
#    Pricecut lets me take my **HTML** and _mark it down_.
#    ![Awesome](awesome.png)

Supported Platforms

  • Ruby 1.8.7
  • Ruby 1.9.3
  • JRuby (1.8 mode)
  • JRuby (1.9 mode)
  • Rubinius (1.8 mode)
  • Rubinius (1.9 mode)


  • Decouple MarkdownVisitor from Pricecut::Elements.
  • Document code.
  • Add support for Markdown code blocks.
  • Add indentation support.
  • Add word-wrap support. (80 characters)
  • Make Pricecut::Elements classes configurable. (e.g. Use your own custom class for <hr /> if you want.)


  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

Copyright (c) 2012 Adam Tanner. See License for details.