GitXplorerGitXplorer
d

rdiscount

public
751 stars
70 forks
3 issues

Commits

List of commits on branch master.
Unverified
3a0e51ab0b65e460a13773a96d41bb5f11615206

2.2.7.3 release

ddavidfstr committed a year ago
Unverified
a39f34d552e803a5845961d330690fbf4956533d

Continuous Integration: Add Ruby 3.3

ddavidfstr committed a year ago
Unverified
2265fa24a13fef6d4cf8aff53b1f28bca3bfa11b

Continuous Integration: Add Ruby 3.2

ddavidfstr committed a year ago
Unverified
a05ee4d8f1749aa8c6c9c0f81e580bdfa046bbbf

Reinstate fixes for Clang 16

ddavidfstr committed a year ago
Unverified
e8f06e2ff9cafe1d8277eef6100bfad0a53bd3c2

rdiscount.gemspec: Fix steps to rebuild file list

ddavidfstr committed a year ago
Unverified
bd5ee93928f8e88081279af542b0c114a90739b2

2.2.7.2 release

ddavidfstr committed a year ago

README

The README file for this repository.

Discount Markdown Processor for Ruby

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: https://dafoster.net/projects/rdiscount/
DOCS: https://rdoc.info/github/davidfstr/rdiscount/master/RDiscount
BUGS: https://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.