| CARVIEW |
rtomayko / rdiscount
- Source
- Commits
- Network (17)
- Issues (6)
- Downloads (16)
- Wiki (2)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Feb 03 08:24:23 -0800 2010 | make sure extension is rebuild when switching r... [rtomayko] |
| |
COPYING | Thu May 29 19:51:11 -0700 2008 | initial commit of discount ruby extension at 1.2.6 [rtomayko] |
| |
README.markdown | Fri Nov 13 14:55:01 -0800 2009 | Misc README/doc tweaks [rtomayko] |
| |
Rakefile | Tue Jun 15 13:56:00 -0700 2010 | bring discount sources up to v1.6.5 [rtomayko] |
| |
bin/ | Sat Apr 24 23:55:08 -0700 2010 | add `rdiscount --help' usage message [rtomayko] |
| |
ext/ | Tue Jun 15 13:56:00 -0700 2010 | bring discount sources up to v1.6.5 [rtomayko] |
| |
lib/ | Tue Jun 15 14:02:57 -0700 2010 | 1.6.5 release [rtomayko] |
| |
man/ | Tue Jun 15 14:02:57 -0700 2010 | 1.6.5 release [rtomayko] |
| |
rdiscount.gemspec | Tue Jun 15 14:02:57 -0700 2010 | 1.6.5 release [rtomayko] |
| |
test/ | Tue Mar 09 07:00:05 -0800 2010 | add options for new Discount flags [nono] |
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.
CODE: git clone git://github.com/rtomayko/rdiscount.git
HOME: https://github.com/rtomayko/rdiscount
DOCS: https://rdoc.info/projects/rtomayko/rdiscount
BUGS: https://github.com/rtomayko/rdiscount/issues
Discount was developed by David Loren Parsons. The Ruby extension is maintained by Ryan Tomayko.
INSTALL, HACKING
New releases of RDiscount are published to gemcutter:
$ [sudo] gem install rdiscount -s https://gemcutter.org
The RDiscount sources are available via Git:
$ git clone git://github.com/rtomayko/rdiscount.git
$ cd rdiscount
$ rake --tasks
USAGE
RDiscount implements the basic protocol popularized by RedCloth and adopted by BlueCloth:
require 'rdiscount'
markdown = RDiscount.new("Hello World!")
puts markdown.to_html
Additional processing options can be turned on when creating the RDiscount object:
markdown = RDiscount.new("Hello World!", :smart, :filter_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.
- © 2010 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security