Convert::Wiki 0.05 review
DownloadConvert::Wiki is a Perl module that can convert HTML/POD/txt from/to Wiki code. SYNOPSIS use Convert::Wiki;
|
|
Convert::Wiki is a Perl module that can convert HTML/POD/txt from/to Wiki code.
SYNOPSIS
use Convert::Wiki;
my $wiki = Convert::Wiki->new();
$wiki->from_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
$wiki->from_html ( $html );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
# clear the object manually
$wiki->clear();
$wiki->add_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
Convert::Wiki converts from various formats to various Wiki formats.
Input can come as HTML, POD or plain TXT (like it is written in many READMEs). The data will be converted to an internal, node based format and can then be converted to Wikicode as used by many wikis like the Wikipedia.
Requirements:
Perl
Convert::Wiki 0.05 keywords