Revision 8 - 2009-03-11 at 03:48:58

We like Multi-Markdown for text formatting, but if you prefer something else, MojoMojo's pluggable formatter chain let's you rip out the MultiMarkdown formatter, and replace it with Textile, or whatever else strikes your fancy. Since the wiki-links are handled by a separate formatter, it won't be affected at all. You can also add additional formatters to the core one, such as our RSS formatter or the Amazon formatter.

To set Markdown as the default formatter, run this one-liner in the MojoMojo directory:

perl -Ilib -MMojoMojo -e'MojoMojo->pref("main\_formatter", "MojoMojo::Formatter::Markdown")'

Formatters

Multi-Markdown

An extension to Markdown, probably the most powerful and still light markup language. MojoMojo's default. More versatile than Textile in that it supports line breaks, code sections and paragraphs in lists, and reduces the need for escaping.

Textile

Another built-in text formatter. Textile is popular among bloggers, and has an easy to learn format. You can read more about it at the creator's website.

Wiki

This formatter handles the wiki-linking between pages in MojoMojo. It supports Explicit Link? style. CamelCase is not supported by default (we learned from TWiki's mistakes).

Scrub

This formatter ensures that the generated HTML is squeaky clean. That means it makes sure the generated output doesn't contain any potentially harmful elements.

Table of Contents

Generates a table of contents from the headings in the document. Syntax:

{{toc start_heading_level - end_heading_level}}

The start_heading_level and end_heading_level are optional. The following are valid examples:

{{toc}} Table of Contents calculated from all heading levels
{{toc 2-}} start with heading level 2 (useful to exclude the first Heading1)
{{toc -3}} don't got deeper than Heading3

Comment

Allows user comment on page. syntax \n=comment\n

Pod

Formats Plain Old Documentation. Processes blocks between \n=pod\n

Include

Verbatim HTTP include. Loaded at runtime. Syntax: \n=url\n

IRCLog

see killtrac for example.

My tags:
 
Popular tags:
 
Powered by Catalyst