Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
MultiMarkdown module for ruby, by porting rpeg-markdown to use peg-multimarkdown
C Ruby
branch: master

This branch is 49 commits ahead of rtomayko:master

Failed to load latest commit information.
ext Copy encoding from input text to output
lib Updated documentation
peg-multimarkdown @ 0d9c20e Bring peg-multimarkdown submodule up to date
.gitignore ignore stuff
LICENSE Added option parser to bin/rpeg-multimarkdown using micro-optparse
README.markdown Update version to 0.2.2
Rakefile Update version to 0.2.2


Ruby PEG MultiMarkdown

An extension library around Fletcher Penney's implementation of MultiMarkdown in C. This library is based (almost entirely) on rpeg-markdown, which is a ruby extension library around John MacFarlane's C implementation of Markdown.


>> require 'multimarkdown'

>> puts'Hello, world.').to_html
# <p>Hello, world.</p>

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

>> puts'_Hello World!_').to_latex
# \emph{Hello World!}

>> puts"Title: Some document\n\nSome text in the document").extract_metadata("title")
# Some document

>>'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-multimarkdown


$ git clone git://
$ cd rpeg-multimarkdown
$ git submodule init
$ git submodule update
$ rake test


  • Version 0.2.2
    • Bringing everything up to date with the last version of peg-multimarkdown
    • Fixed ruby module tests, which weren't actually running
    • Preserve encoding, e.g. for UTF-8
  • Version 0.1.1


The peg-markdown, peg-multimarkdown, and Ruby PEG Markdown extension sources are licensed under the GPL and the Ruby PEG MultiMarkdown 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.