2
use Wiki::Toolkit::Formatter::UseMod;
3
use Test::More tests => 2;
5
my $wikitext = <<WIKITEXT;
7
http://external.example.com/
9
[http://external2.example.com foo]
13
my $formatter = Wiki::Toolkit::Formatter::UseMod->new;
15
my $html = $formatter->format( $wikitext );
18
qr'<a href="http://external.example.com/">http://external.example.com/</a>',
19
"external links with no title appear as expected" );
22
qr'[<a href="http://external2.example.com/">foo</a>]',
23
"external links with title appear as expected" );