File: 05options.t

package info (click to toggle)
libtext-multimarkdown-perl 1.000035-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,772 kB
  • ctags: 148
  • sloc: perl: 2,186; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;
use Test::More tests => 3;

use_ok( 'Text::MultiMarkdown', 'markdown' );

my $m     = Text::MultiMarkdown->new;
my $html1 = $m->markdown(<<"EOF");
[test][] the link!
EOF

is( <<"EOF", $html1 );
<p>[test][] the link!</p>
EOF

my $html2 = $m->markdown(<<"EOF", {urls => {test => 'http://example.com'}});
[test][] the link!
EOF

is( <<"EOF", $html2 );
<p><a href="http://example.com">test</a> the link!</p>
EOF