man HTML::WikiConverter::MediaWiki () - HTML-to-wiki conversion rules for MediaWiki

NAME

HTML::WikiConverter::MediaWiki - HTML-to-wiki conversion rules for MediaWiki

SYNOPSIS

  use HTML::WikiConverter;
  my $wc = new HTML::WikiConverter( dialect => 'MediaWiki' );
  print $wc->html2wiki( $html );

DESCRIPTION

This module contains rules for converting HTML into MediaWiki markup. See HTML::WikiConverter for additional usage details.

ATTRIBUTES

In addition to the regular set of attributes recognized by the HTML::WikiConverter constructor, this dialect also accepts the following attributes:

preserve_bold
Boolean indicating whether bold HTML elements should be preserved as HTML in the wiki output rather than being converted into MediaWiki markup. By default, <b> and <strong> elements are converted to wiki markup identically. But sometimes you may wish <b> tags in the HTML to be preserved in the resulting MediaWiki markup. This attribute allows this. For example, if CWpreserve_bold is enabled, HTML like
  <ul>
    <li> <b>Bold</b>
    <li> <strong>Strong</strong>
  </ul>
will be converted to
  * <b>Bold</b>
  * '''Strong'''
When disabled (the default), the preceding HTML markup would be converted into
  * '''Bold'''
  * '''Strong'''
preserve_italic
Boolean indicating whether italic HTML elements should be preserved as HTML in the wiki output rather than being converted into MediaWiki markup. For example, if CWpreserve_italic is enabled, HTML like
  <ul>
    <li> <i>Italic</i>
    <li> <em>Emphasized</em>
  </ul>
will be converted to
  * <i>Italic</i>
  * ''Emphasized''
When disabled (the default), the preceding HTML markup would be converted into
  * ''Italic''
  * ''Emphasized''

AUTHOR

David J. Iberri <diberri@cpan.org>

COPYRIGHT

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