Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
355 B

use strict;
use warnings;
use utf8;
use Test::More tests => 2;
use Text::Markdown::Discount;
is(Text::Markdown::Discount::markdown("hey\nhttp://mixi.jp"), "<p>hey\nhttp://mixi.jp</p>\n");
is(Text::Markdown::Discount::markdown("hey\nhttp://mixi.jp", Text::Markdown::Discount::MKD_AUTOLINK), qq{<p>hey\n<a href="http://mixi.jp">http://mixi.jp</a></p>\n});