HTML::WikiConverter::Oddmuse - HTML-to-wiki conversion rules for Oddmuse
use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => 'Oddmuse' ); print $wc->html2wiki( $html );
This module contains rules for converting HTML into Oddmuse markup. This dialect module supports most of Oddmuse's text formatting rules described at [1], notably:
* bold, strong, italic, emphasized, and underlined text * paragraph blocks * external images * internal and external links * unordered and ordered lists * tables [2] [1] http://www.oddmuse.org/cgi-bin/wiki/Text_Formatting_Rules [2] http://www.oddmuse.org/cgi-bin/wiki/Table_Markup_Extension
See HTML::WikiConverter for usage details.
In addition to the regular set of attributes recognized by the HTML::WikiConverter constructor, this dialect also accepts the following attributes:
Boolean indicating whether CamelCase links are enabled in the target Oddmuse installation. This corresponds to Oddmuse's $WikiLinks configuration parameter. Enabling CamelCase links will turn HTML like this:
$WikiLinks
<p><a href="/wiki/CamelCase">CamelCase</a> links are fun.</p>
into this Oddmuse markup:
CamelCase links are fun.
Disabling CamelCase links (the default) would convert that HTML into
[[CamelCase]] links are fun.
David J. Iberri <diberri@yahoo.com>
Copyright (c) 2005 David J. Iberri
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install HTML::WikiConverter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::WikiConverter
CPAN shell
perl -MCPAN -e shell install HTML::WikiConverter
For more information on module installation, please visit the detailed CPAN module installation guide.