HTML::WikiConverter::MediaWiki

HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup.
Download

HTML::WikiConverter::MediaWiki Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David J. Iberri
  • Publisher web site:
  • http://search.cpan.org/~diberri/HTML-WikiConverter-MediaWiki-0.55/lib/HTML/WikiConverter/MediaWiki.pm

HTML::WikiConverter::MediaWiki Tags


HTML::WikiConverter::MediaWiki Description

HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup. HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup.SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => 'MediaWiki' ); print $wc->html2wiki( $html );This module contains rules for converting HTML into MediaWiki markup. See HTML::WikiConverter for additional usage details.ATTRIBUTESIn addition to the regular set of attributes recognized by the HTML::WikiConverter constructor, this dialect also accepts the following attributes:preserve_boldBoolean 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 tags in the HTML to be preserved in the resulting MediaWiki markup. This attribute allows this.For example, if preserve_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_italicBoolean indicating whether italic HTML elements should be preserved as HTML in the wiki output rather than being converted into MediaWiki markup.For example, if preserve_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''preserve_templatesBoolean indicating whether {{template}} calls found in HTML should be preserved in the wiki markup. If disabled (the default), templates calls will be wrapped in < nowiki > tags.preserve_nowikiBoolean indicating whether tags found in HTML should be preserved in the wiki markup. If disabled (the default), nowiki tags will be replaced with their content.pad_headingsBoolean indicating whether section headings should be padded with spaces (eg, "== Section ==" instead of "==Section=="). Default is to pad. Requirements: · Perl


HTML::WikiConverter::MediaWiki Related Software