Giter Site home page Giter Site logo

rdiscount's Introduction

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 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/rtomayko/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.

rdiscount's People

Contributors

rtomayko avatar davidfstr avatar js avatar pixeltrix avatar drothlis avatar nono avatar technoweenie avatar timfel avatar rcrowley avatar leereilly avatar keolo avatar vertiginous avatar geoffgarside avatar orc avatar chrisk avatar chriseppstein avatar tmm1 avatar

Watchers

James Cloos avatar wangkk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.