Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MultiMarkdown module for ruby, by porting rpeg-markdown to use peg-multimarkdown

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 ext
Octocat-spinner-32 lib
Octocat-spinner-32 peg-multimarkdown @ 62a0916
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 .yardopts
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile

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
$ rake test



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.