=toc
h1.
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.
h2.
"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,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:
"Link text":http://example.com[Link text](http://example.com)
*bold_italic_*italic**bold**. In Markdown, you just write \*.<http://mojomojo.org>
| (backslash-escaping doesn't work in this case with MultiMarkdown). MultiMarkdown allows linebreaks in tables after the first row.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 |
MojoMojo Textile | "| Wikipedia |
| |
|---|---|---|---|---|---|
| MojoMojo features | MojoMojo [[/features]] | MojoMojo [[features]] | |||
| MojoMojo editing cheatsheet | MojoMojo [[/documentation/cheatsheet | editing cheatsheet]] | MojoMojo [[cheatsheet | editing cheatsheet]] | |||
h2.
Example
Example copied from the MultiMarkdown syntax guide:
| Grouping | ||
|---|---|---|
| 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.