summaryrefslogtreecommitdiff
path: root/t/code-hr.t
diff options
context:
space:
mode:
Diffstat (limited to 't/code-hr.t')
-rw-r--r--t/code-hr.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/code-hr.t b/t/code-hr.t
new file mode 100644
index 0000000..005b39a
--- /dev/null
+++ b/t/code-hr.t
@@ -0,0 +1,16 @@
+use strict;
+use warnings;
+use Text::Markdown 'markdown';
+use Test::More tests => 1;
+
+my $txt = markdown(<<'END_MARKDOWN', { tab_width => 2 });
+This is a para.
+
+ This is code.
+ ---
+ This is code.
+
+This is a para.
+END_MARKDOWN
+
+unlike($txt, qr{<hr}, "no HR elements when the hr is in a code block");