use warnings; use strict; use Test::More 'no_plan'; use lib ('lib', '../lib'); use MKDoc::Text::Structured; my $text = undef; $MKDoc::Text::Structured::Inline::NoFollow = 1; $text = MKDoc::Text::Structured::process ("This is a test: http://www.google.com/"); is ($text, '
This is a test: http://www.google.com/
'); $text = MKDoc::Text::Structured::process ("This is a test:This is a test: <http://www.google.com/>
'); $text = MKDoc::Text::Structured::process ("This is a test: http://www.google.com/?a=b&c=d"); is ($text, 'This is a test: http://www.google.com/?a=b&c=d
'); undef $MKDoc::Text::Structured::Inline::NoFollow; $text = MKDoc::Text::Structured::process ("This is a test: http://www.google.com/"); is ($text, 'This is a test: http://www.google.com/
'); __END__