Zim::Formats::Wiki.3pm

Langue: en

Version: 2009-03-16 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Zim::Formats::Wiki - Wiki text parser

DESCRIPTION

This is the default parser for Zim. It uses a wiki-style syntax to format plain text.

FIXME more verbose description

All format types are signified by double characters, this is done to prevent accidental formatting when the same characters are used normally in a text. For the same reason the strike character is '~' instead of '-' because '--' can occur in normal ascii text. In the regexes we try to always match the inner pair if more than two of these characters are encountered. (Thus if we see "***bold***" we should match "*(**bold**)*".)

METHODS

"load_tree(IO, PAGE)"
Reads plain text from a filehandle and returns a parse tree.
"save_tree(IO, TREE, PAGE)"
Serializes the parse tree into a piece of plain text and writes this to a filehandle.

AUTHOR

Jaap Karssenberg (Pardus) <pardus@cpan.org>

Copyright (c) 2005 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Zim, Zim::Page