and next TRY;
$part =~ s#table\[([^\]\[]+)\|([^\]\[|]+)\]#_cleanup_table($1, "|$2")#ieg
and next TRY;
+ $part =~ s# ?\blist\[([^\]\[\|]*)\|\s*(\S[^\]\[]+)\]#$2#g
+ and next TRY;
$part =~ s#\*\*([^\n]+)#$1#g
and next TRY;
$part =~ s!##([^\n]+)!$1!g
#!perl -w
use strict;
-use Test::More tests => 150;
+use Test::More tests => 151;
sub format_test($$$;$);
sub noformat_test($$$;$);
noformat_test '**image[bar]', '', '** list with image content';
noformat_test '%%image[bar]', '', '%% list with image content';
noformat_test '##image[bar]', '', '## list with image content';
+ noformat_test <<IN, <<OUT, "list[] no attr", "both";
+list[|
+## one
+## two
+]
+IN
+ one
+ two
+
+OUT
}
sub format_test ($$$;$) {