MojoMojo Cheatsheet

In MojoMojo, you can write wiki pages using HTML and one of two popular "lightweight markup languages":http://en.wikipedia.org/wiki/Lightweight_markup_language: Textile and Markdown. While you must currently choose between Textile and Markdown when creating your wiki, HTML is always available, for a few "good reasons":http://www.fileformat.info/news/2005/03/04/humane_text_formats.htm.


Choosing between Textile2 and MultiMarkdown

"Textile2":http://bradchoate.com/mt/docs/mtmanual_textile2.html is an extension to Textile., adding extended blocks (blocks that can contain a newline). "MultiMarkdown":http://fletcherpenney.net/multimarkdown/users_guide/multimarkdown_syntax_guide/ is an extension to "Markdown":http://daringfireball.net/projects/markdown/syntax, adding support for tables, footnotes, bibliography, automatic cross-references, glossaries, appendices, definition lists, math syntax, anchor and image attributes, and document metadata. etc.

One major problem with Textile2 can'tis that newlines break lists. It thus becomes impossible to render blockquotes or blocks of code in lists because the "bq." or "bc." block signature requires being surrounded by blank lines, and blank lines break lists:

# First,

bq. Avoid problems, and you'll never be the one who overcame them. -- Richard Bach

# Second item,

but will be numbered "1"

bq. There is no elevator to success. You have to take the stairs.

The workaround for Textile is to usefallback HTMLto and avoid the line breaksHTML.

"Markdown's documentation":http://daringfireball.net/projects/markdown/syntax#list explicitly tells how to "put a blockquote within a list item".

Generally, Markdown is more powerful, and Textile is simpler. The mostbasic common differences between themthe two syntaxes are:

To switch MojoMojo to use MultiMarkdownTextile, rungo thisto one-liner in the MojoMojoEdit directory:Settings page.

bc. perl -Ilib -MMojoMojo -e'MojoMojo->pref("main_formatter", "MojoMojo::Formatter::Markdown")'


h2.Wikilinks Cheatsheetare interpreted by MojoMojo separately and have the same syntax, regardless of the formatter being Textile2 or MultiMarkdown:

What you see MojoMojo "MultiMarkdown":http://fletcherpenney.net/multimarkdown/Wikilinks MojoMojo Textile "Wikipedia":http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page#Links_and_URLs
MojoMojo features MojoMojo [[/features]] MojoMojo [[features]]
MojoMojo editing cheatsheet MojoMojo [[/documentation/cheatsheet | editing cheatsheet]] MojoMojo [[cheatsheet | editing cheatsheet]]

h2. MojoMojo Tableediting headerscheatsheet MojoMojo (broken[[/documentation/cheatsheet | atediting thecheatsheet]] MojoMojo moment)

[[cheatsheet | editing cheatsheet]]


Table copiedheaders fromand thecell "MultiMarkdown syntax guide":http://fletcherpenney.net/multimarkdown/users_guide/multimarkdown_syntax_guide/:


Example copied from the MultiMarkdown syntax guide:

Prototype table
First Header Second Header Third Header
Content Long Cell
Content Cell Cell
New section More Data
And more And more

The CSS doesn't currently match the one in the MultiMarkdown example. This is an easy fix; please consider submitting a patch to mojomojo.css.