Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 72d557ecad
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (32 sloc) 1.092 kb

Ruby PEG Markdown

An extension library around John MacFarlane's fast implementation of Markdown in C.

Synopsis

>> require 'markdown'
>> puts Markdown.new('Hello, world.').to_html
<p>Hello, world.</p>

>> puts Markdown.new('_Hello World!_', :smart, :filter_html).to_html
<p><em>Hello World!</em></p>

>> PEGMarkdown.new('Hello! World!')

Installation / Hacking

This library requires a recent version of glib2. All modern GNU userland systems should be fine.

Install from GEM:

$ sudo gem install rpeg-markdown

Hacking:

$ git clone git://github.com/rtomayko/rpeg-markdown.git
$ cd rpeg-markdown
$ rake test

Patches happily accepted via fork or email.

Changes

COPYING

The peg-markdown sources are licensed under the GPL and the Ruby PEG Markdown extension sources adopts this license. See the file LICENSE included with this distribution for more information.

Jump to Line
Something went wrong with that request. Please try again.