MojoMojo::Formatter::Wiki - Handle interpage linking.


MojoMojo documentation  | view source Contained in the MojoMojo distribution.

Index


NAME

Top

MojoMojo::Formatter::Wiki - Handle interpage linking.

DESCRIPTION

Top

This formatter handles intra-Wiki links specified between double square brackets or parentheses: [[wiki link]] or ((another wiki link)). It will also indicate missing links with a question mark and a link to the edit page. Links can be implicit (like the two above), where the path is derived from the link text by replacing spaces with underscores (<a href="wiki_link">wiki link</a>), or explicit, where the path is specified before a '|' sign:

    [[/explicit/path|Link text goes here]]

Note that external links have a different syntax: [Link text](http://foo.com).

METHODS

Top

format_content_order

Format order can be 1-99. The Wiki formatter runs on 10.

strip_pre

Replace <pre ... with a placeholder

reinsert_pre

Put pre and lang back into place.

format_content

Calls the formatter. Takes a ref to the content as well as the context object.

SEE ALSO

Top

MojoMojo, Module::Pluggable::Ordered

AUTHORS

Top

Marcus Ramberg <mramberg@cpan.org>

LICENSE

Top

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


MojoMojo documentation  | view source Contained in the MojoMojo distribution.