In MojoMojo, you can write wiki pages using HTML and one of two popular lightweight markup languages: 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.
Textile2 is an extension to Textile, adding extended blocks (blocks that can contain a newline). MultiMarkdown is an extension to Markdown, adding support for tables, footnotes, bibliography, automatic cross-references, glossaries, appendices, definition lists, math syntax, anchor and image attributes, and document metadata.
OneGenerally, issueMarkdown withis Textile2bit more cryptic but perhaps powerful, and Textile is thateasier newlinesto breakread lists.and Ituse thusbecause becomesit impossibledistinguishes markup more clearly. Textile is meant to renderbe blockquotescombined with HTML for more complex documents, or blocksTextile ofcan codebe inturned listsoff becauseall thetogether "bq."at orany "bc."point blockwith == == signaturewrapped requiresaround beingthe surroundedcontent. byThe blankbasic lines,differences andbetween blankthe linestwo breaksyntaxes listsare:
h1. h2. h3. h4. h5. h6.
"Link text":http://example.com[Link text](http://example.com)
Quoting the text of the link is easier to remember with textile. While markdown requires one to decide between bracket types for the text and the URL - Advantage Textile*bold*, _italic_*italic* ('em'), **bold** ('strong')
Textile uses different indicators for bold and italic to easily distinguish. The underscore is quite commonly used for emphasis historically so has long standing semantic meaning. * for a *. 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.In order to achieve this one simple uses HTML instead of Textile, no big deal. Know when to use the right tool for the job. Textile's documentations specifically says it's meant as a lightweight markup, and when one needs more than what it offers then use HTML instead.
Markdown's documentation explicitly tells how to "put a blockquote within a list item".
Generally, Markdown is bit more crptic, and Textile is easier to read because it distinguishes markup more clearly. The basic differences between the two syntaxes are:
h1. h2. h3. h4. h5. h6."Link text":http://example.com[Link text](http://example.com)
Quoting the text of the link is easier to remember with textile. While markdown require one to decide between bracek types for the text and the URL - Advantage Textile*bold*, _italic_*italic* ('em'), **bold** ('strong')
Textile uses different indicators for bold and italic to easily distinguish. The underscore is quite commonly used for emphasis historically so has long standing semantic meaning. * for a *. 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 Textile, go to the Edit Settings page.
Wikilinks are interpreted by MojoMojo separately and have the same syntax, regardless of the formatter being Textile2 or MultiMarkdown:
| What you see | MojoMojo Wikilinks | Wikipedia | |
|---|---|---|---|
| MojoMojo features | MojoMojo [[/features]] | MojoMojo [[features]] | |
| MojoMojo editing cheatsheet | MojoMojo [[/documentation/cheatsheet | editing cheatsheet]] | MojoMojo [[cheatsheet | editing cheatsheet]] | |
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.
One issue with Textile2 is 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,In order to achieve this one simple uses HTML instead of Textile, no big deal. Know when to use the right tool for the job. Textile's documentations specifically says it's meant as a lightweight markup, and when one needs more than what it offers then use HTML instead.
Markdown's documentation explicitly tells how to "put a blockquote within a list item".