NAME

Text::GooglewikiFormat - Translate Google Code Wiki markup into HTML

SYNOPSIS

use Text::GooglewikiFormat;
my $raw  = '*bold* _italic_ ~~strike~~';
my $html = Text::GooglewikiFormat::format($raw);
# $html is qq~<p><strong>bold</strong> <i>italic</i> <span style="text-decoration: line-through">strike</span></p>~ now

DESCRIPTION

Google Code http://code.google.com/ is a great code hosting place.

This module is aim to convert http://code.google.com/p/support/wiki/WikiSyntax to HTML.

ADV. Example

my $raw  = 'WikiWordLink';
my %tags = %Text::GooglewikiFormat::tags;
my $html = Text::GooglewikiFormat::format($raw, \%tags, { prefix => 'http://code.google.com/p/fayland/wiki/' } );
# $html is qq~<p><a href="http://code.google.com/p/fayland/wiki/WikiWordLink">WikiWordLink</a></p>~ now

BUGS

It's not excatly the same as what google outputs. for the linebreak generally.

please report bugs to http://code.google.com/p/fayland/issues/list

SEE ALSO

Text::WikiFormat, Text::MediawikiFormat

AUTHOR

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE

Copyright 2007 Fayland Lam, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.