use strict; use warnings; use utf8; use Markdown::Perl; use Test2::V0; sub run { &Markdown::Perl::convert; } is(run("> ```\n> abc\n> def\n> ```"), "
\n
abc\ndef\n
\n
\n", 'fenced_code_in_quotes'); is(run("> abc\n> def\n"), "
\n
abc\ndef\n
\n
\n", 'indented_code_in_quotes'); is(run("> abc"), "
\n

abc

\n
\n", 'not_indented_code_in_quotes'); is(run(">\t\tabc\n"), "
\n
  abc\n
\n
\n", 'indented_code_in_quotes_tabs'); is(run("> abc\n> - def\n> - ghi\n"), "
\n

abc

\n\n
\n", 'list_in_quotes'); is(run("> abc\n===\n"), "
\n

abc\n===

\n
\n", 'no_lazy_setext_heading'); is(run("> abc\n---\n"), "
\n

abc

\n
\n
\n", 'no_lazy_thematic_break'); is(run(">
\n> abc\n\nfoo"), "
\n
\nabc\n
\n

foo

\n", 'html_in_block'); is(run("- abc"), "\n", 'indented_code_in_list'); is(run("- abc"), "\n", 'not_indented_code_in_list'); is(run("[foo]\n\n> [foo]:\n> /url\n"), "

foo

\n
\n
\n", 'multi-line link reference definition in container block'); done_testing;