#!perl BEGIN { chdir 't' if -d 't' } use strict; use warnings; use Test::More tests => 3; use Test::NoWarnings; use Text::MediawikiFormat as => 'wf', process_html => 0; my $wikitext = < { unordered => qr/^!\s*/ } ); my $htmltext = wf( $wikitext, \%format_tags ); like( $htmltext, qr!
  • But marked differently
  • !m, 'redefining a list type works with use as' ); %format_tags = ( indent => qr//, blocks => { ordered => qr/^#\s*/, unordered => qr/^\*\s*/ }, indented => { unordered => 0 }, ); $htmltext = wf( $wikitext, \%format_tags ); like( $htmltext, qr!
  • \* But not indented!m, 'redefining a list type to require no indent works with use as' );