3
use Test::More tests => 2;
4
use File::Slurp qw(slurp);
8
use_ok('Text::Markdown');
11
my $m = Text::Markdown->new();
13
my $docsdir = "$Bin/docs-multimarkdown";
14
my $input = q{This is a formatted ![image][] and a [link][] with attributes.
16
[image]: http://path.to/image "Image title" width=40px height=400px
18
[link]: http://path.to/link.html "Some Link" class=external
19
style="border: solid black 1px;"
21
my $output = q{<p>This is a formatted <img src="http://path.to/image" alt="image" title="Image title" width="40px" height="400px" /> and a <a href="http://path.to/link.html" title="Some Link" style="border: solid black 1px;" class="external">link</a> with attributes.</p>
23
<p>Some non-link text.</p>
26
my $processed = $m->markdown($input);
28
isnt($processed, $output, 'MultiMarkdown image and link attributes feature bleeds into Text::Markdown');