github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rtomayko / rdiscount

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 259
    • 14
  • Source
  • Commits
  • Network (14)
  • Issues (5)
  • Downloads (12)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (12)
    • v1.2.7
    • v1.2.6.2
    • 1.5.8
    • 1.5.5
    • 1.3.5
    • 1.3.4
    • 1.3.1.1
    • 1.3.1
    • 1.2.11
    • 1.2.10
    • 1.2.7
    • 1.2.6.2
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

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

  cancel

http://github.com/rtomayko/rdiscount/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fix to allow building with rubyinstaller and devkit on Windows 
Gordon Thiesfeld (author)
Fri Feb 05 15:09:00 -0800 2010
rtomayko (committer)
Mon Feb 08 11:13:28 -0800 2010
commit  2a9b6da230e447ae182968256e9286c90f1cca20
tree    b28e2368b14bfc0fd8c0aca963468392547ab5a0
parent  46fe2bf8061605625ef23d3065b990e9b7340ddb
rdiscount /
name age
history
message
file .gitignore Wed Feb 03 08:24:23 -0800 2010 make sure extension is rebuild when switching r... [rtomayko]
file COPYING Thu May 29 19:51:11 -0700 2008 initial commit of discount ruby extension at 1.... [rtomayko]
file README.markdown Fri Nov 13 14:55:01 -0800 2009 Misc README/doc tweaks [rtomayko]
file Rakefile Wed Feb 03 08:44:12 -0800 2010 oops - bad glob in Makefile dependencies broke ... [rtomayko]
directory bin/ Tue Jun 03 03:59:06 -0700 2008 Rename Discount as RDiscount The "Discount" na... [rtomayko]
directory ext/ Fri Feb 05 15:09:00 -0800 2010 fix to allow building with rubyinstaller and de... [vertiginous]
directory lib/ Wed Feb 03 08:47:26 -0800 2010 1.5.8 release [rtomayko]
file rdiscount.gemspec Wed Feb 03 08:47:26 -0800 2010 1.5.8 release [rtomayko]
directory test/ Wed Feb 03 08:10:08 -0800 2010 tests for 've, 'm, and 'd suffix rsquo'ing [rtomayko]
README.markdown

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: http://github.com/rtomayko/rdiscount
DOCS: http://rdoc.info/projects/rtomayko/rdiscount
BUGS: http://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 http://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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server