davidfstr/rdiscount


Discount (For Ruby) Implementation of John Gruber's Markdown

http://dafoster.net/projects/rdiscount/

License: BSD-3-Clause

Language: C


Discount Markdown Processor for Ruby

Build Status Build status

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/davidfstr/rdiscount.git
HOME: http://dafoster.net/projects/rdiscount/
DOCS: http://rdoc.info/github/davidfstr/rdiscount/master/RDiscount
BUGS: http://github.com/davidfstr/rdiscount/issues

Discount was developed by David Loren Parsons. The Ruby extension is maintained by David Foster.

INSTALL, HACKING

New releases of RDiscount are published to RubyGems:

$ [sudo] gem install rdiscount

The RDiscount sources are available via Git:

$ git clone git://github.com/davidfstr/rdiscount.git
$ cd rdiscount
$ rake --tasks

See the file BUILDING for hacking instructions.

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.

Project Statistics

Sourcerank 18
Repository Size 496 KB
Stars 771
Forks 66
Watchers 22
Open issues 5
Dependencies 0
Contributors 24
Tags 25
Created
Last updated
Last pushed

Top Contributors See all

Ryan Tomayko David Foster Johan Sørensen Andrew White David Röthlisberger Bruno Michel Hiroshi Shirosaki Julian Simioni Maciej Trybilo Lee Reilly Chris Kampmeier Chris Eppstein Tim Felgentreff Geoff Garside David Parsons Anatol Pomozov Joel Low Samuel Giddins Richard Crowley Cyril Margorin

Packages Referencing this Repo

chaptastic-rdiscount
Fast Implementation of Gruber's Markdown in C
Latest release 1.4.1 - Published - 771 stars
rdiscount-dsc
Fast Implementation of Gruber's Markdown in C
Latest release 1.6.9 - Published - 771 stars
discount
Discount Implementation of Gruber's Markdown
Latest release 1.2.6 - Updated - 771 stars
patcito-rdiscount
Fast Implementation of Gruber's Markdown in C
Latest release 1.6.9 - Updated - 771 stars
rdiscount
Fast Implementation of Gruber's Markdown in C
Latest release 2.2.0.1 - Updated - 771 stars
rtomayko-rdiscount
Fast Implementation of Gruber's Markdown in C
Latest release 1.3.1.1 - Updated - 771 stars

Recent Tags See all

2.2.0.1 May 08, 2016
2.2.0 May 05, 2016
2.1.8 February 01, 2015
2.1.7.1 April 12, 2014
2.1.7 October 14, 2013
2.1.6 May 29, 2013
2.0.7.3 May 08, 2013
2.0.7.2 April 06, 2013
2.0.7.1 February 27, 2013
2.0.7 January 30, 2013
1.6.8 January 25, 2011
1.6.5 June 15, 2010
1.6.3.2 May 14, 2010
1.6.3.1 April 20, 2010
1.5.8.1 March 08, 2010

Interesting Forks See all

nathanhoad/moredown
Discount (For Ruby) Implementation of John Gruber's Markdown
C - Other - Last pushed - 17 stars - 2 forks
ricodigo/rdiscount
Discount (For Ruby) Implementation of John Gruber's Markdown
C - Other - Last pushed - 2 stars - 1 forks
jkestr/rdiscount
Discount (For Ruby) Implementation of John Gruber's Markdown
C - Other - Updated - 2 stars
MagLev/rdiscount
Discount (For Ruby) Implementation of John Gruber's Markdown
C - Other - Last pushed - 1 stars
leereilly/rdiscount
Discount (For Ruby) Implementation of John Gruber's Markdown
C - Other - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-04-21 12:21:21 UTC

Login to resync this repository