Text::GooglewikiFormat - Translate Google Code Wiki markup into HTML
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
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.
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
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
Text::WikiFormat, Text::MediawikiFormat
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
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.
To install Text::GooglewikiFormat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::GooglewikiFormat
CPAN shell
perl -MCPAN -e shell install Text::GooglewikiFormat
For more information on module installation, please visit the detailed CPAN module installation guide.