File: 37deflists.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 (40 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use strict;
use warnings;
use Test::More tests => 2;

use_ok('Text::MultiMarkdown');

my $m = Text::MultiMarkdown->new(
    disable_definition_lists => 0
);

my $instr = <<MARKDOWN;
Apple
:   Pomaceous fruit of plants of the genus Malus in 
    the family Rosaceae.
:   An american computer company.

Orange
:   The fruit of an evergreen tree of the genus Citrus.
MARKDOWN

my $expstr = <<OUTPUT;
<dl>
<dt>Apple</dt>
<dd>
Pomaceous fruit of plants of the genus Malus in 
the family Rosaceae.
</dd>
<dd>
An american computer company.
</dd>

<dt>Orange</dt>
<dd>
The fruit of an evergreen tree of the genus Citrus.
</dd>

</dl>
OUTPUT

is($m->markdown($instr) => $expstr, 'definition lists');