use strict; use warnings; use utf8; use Markdown::Perl; use Test2::V0; sub run { &Markdown::Perl::convert; } is(run(":::\ncontent\n:::"), "
content
\ncontent
\ncontent
\ncontent
\ncontent
\ncontent
\ncontent
\ncontent
\nrest
\nend
\n", 'nested blocks'); like(warning { run("::: {#junk=junk}\n:::") }, qr/Unused attribute content/, 'warn for junk attribute'); like(warning { run("::: [content]\n:::") }, qr/Unused inline content/, 'warn for inline content'); is(run(":::\ncontent\n:::", use_directive_blocks => 0), ":::\ncontent\n:::
\n", 'disable block directives'); is(run(":::::::: SPOILERS ::::::::\ncontent\n::::::::::::::::::::::::::"), "content
\n