-
Notifications
You must be signed in to change notification settings - Fork 63
Home
nricciar edited this page Jan 18, 2011
·
8 revisions
WikiCloth is a Ruby implementation of the MediaWiki markup language.
- Variables, Templates
{{ ... }}
- Links
- External Links
[ ... ]
- Internal Links, Images
[[ ... ]]
- External Links
- Wikimedia Markup
== Headings ==
- Lists (
*#;:
) - bold (
'''
), italic (''
) or both ('''''
) - Horizontal rule (
----
) - Tables
- Table of Contents
- <code>,<nowiki>,<pre> (disable wiki markup)
- space at the beginning of a line (<pre>)
- <ref> and <references/> support
- html sanitization
git clone git://github.com/nricciar/wikicloth.git cd wikicloth/ rake install
@wiki = WikiCloth::Parser.new({ :data => "{{test}} ''Hello {{test}}!''", :params => { "test" => "World" } }) @wiki.to_html => "<p>{{test}} <i>Hello World!</i></p>"
Additional support for templates, and custom behavior can be added by extending the WikiCloth::Parser class.