CARVIEW |
Every repository with this icon (

Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install rtomayko-rdiscount
Description: | Discount (For Ruby) Implementation of John Gruber's Markdown |
Homepage: | https://github.com/rtomayko/rdiscount/ |
Clone URL: |
git://github.com/rtomayko/rdiscount.git
Give this clone URL to anyone.
git clone git://github.com/rtomayko/rdiscount.git
|
tree b572b82b41823802f6b99d5c0fa07c85d3a5f425
parent 705af87640f3cdd7f317346d2dc938450a015cf2
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sat Jan 31 13:41:21 -0800 2009 | Merge js/master: TOC and Ruby 1.9 support [rtomayko] |
![]() |
COPYING | Thu May 29 19:51:11 -0700 2008 | initial commit of discount ruby extension at 1.... [rtomayko] |
![]() |
README.markdown | Sat Aug 02 00:08:49 -0700 2008 | tweak README a bit [rtomayko] |
![]() |
Rakefile | Wed Mar 04 05:46:07 -0800 2009 | Run Markdown conformance suite v1.0.3 by defaul... [rtomayko] |
![]() |
bin/ | Tue Jun 03 03:59:06 -0700 2008 | Rename Discount as RDiscount The "Discount" na... [rtomayko] |
![]() |
ext/ | Wed Mar 04 05:49:12 -0800 2009 | Use new mkd_toc function and re-enable TOC gene... [rtomayko] |
![]() |
lib/ | Wed Mar 04 05:49:12 -0800 2009 | Version 1.3.4 [rtomayko] |
![]() |
rdiscount.gemspec | Wed Mar 04 05:49:12 -0800 2009 | Version 1.3.4 [rtomayko] |
![]() |
test/ | Sat Jan 31 13:54:38 -0800 2009 | Fix LOAD_PATH issues in tests under 1.9 [rtomayko] |
Discount Markdown Processor for Ruby
Discount is an implementation of John Gruber's Markdown markup language in C. It implements all of the language described in the markdown syntax document and passes the Markdown 1.0 test suite.
Discount was developed by David Loren Parsons. The Ruby extension was developed by Ryan Tomayko.
Installation, Hacking
RDiscount Gem releases are published to RubyForge and can be installed as follows:
$ [sudo] gem install rdiscount
The RDiscount sources are available via Git:
$ git clone git://github.com/rtomayko/rdiscount.git $ cd rdiscount $ rake --tasks
For more information, see the project page.
Usage
RDiscount implements the basic protocol popularized by RedCloth and adopted by BlueCloth:
require 'rdiscount' markdown = RDiscount.new("Hello World!") puts markdown.to_html
Inject RDiscount into your BlueCloth-using code by replacing your bluecloth require statements with the following:
begin
require 'rdiscount'
BlueCloth = RDiscount
rescue LoadError
require 'bluecloth'
end
COPYING
Discount is free software; it is released under a BSD-style license that allows you to do as you wish with it as long as you don't attempt to claim it as your own work. RDiscount adopts Discount's license verbatim. See the file COPYING for more information.