|
|
|
@ -15,16 +15,9 @@ my $tree = [ $dw->_parse_text($text) ];
|
|
|
|
|
is(ref $tree, 'ARRAY'); |
|
|
|
|
is_deeply($tree, [ |
|
|
|
|
'This is text with ', |
|
|
|
|
[span => {'font-style' =>'italic'}, |
|
|
|
|
'inline ', |
|
|
|
|
[span => {'font-weight' => 'bold'}, |
|
|
|
|
'formatting', |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
[i => {}, 'inline ', [b => {}, 'formatting']], |
|
|
|
|
' rules ', |
|
|
|
|
[a => {href => 'http://site.com'}, |
|
|
|
|
'and', |
|
|
|
|
], |
|
|
|
|
[a => {href => 'http://site.com'}, 'and'], |
|
|
|
|
' links.', |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|