Skip to content
Fast Ruby Markdown library based on a PEG grammar (see peg-markdown)
C Perl Ruby
Find file
Failed to load latest commit information.
bin first working version of extension with tests May 21, 2008
ext bring peg-markdown up to 0.4.6 Jan 15, 2010
lib Version 1.0 Aug 1, 2008
peg-markdown @ a20bd44 bring peg-markdown up to 0.4.6 Jan 15, 2010
test filter_html/filter_styles support; extension/class renaming Aug 1, 2008
.gitignore ignore stuff Aug 1, 2008
.gitmodules point peg-markdown submodule at jgm's master Aug 1, 2008
LICENSE bring LICENSE in line with peg-markdown - dual GPL / MIT Jun 7, 2010
README.markdown
Rakefile 1.4.6 release Jan 15, 2010

README.markdown

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>

>> puts Markdown.new('_Hello World!_').to_latex
\emph{Hello World!}

>> puts Markdown.new('_Hello World!_').to_groff_mm
.P
\fIHello world!\fR

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

Something went wrong with that request. Please try again.