summaryrefslogtreecommitdiff
path: root/t/code-hr.t
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
commit6e93939f2b885f1f53836fa3e19b398a5ebbdf40 (patch)
tree5fde91edefd5452acabd3e09426a5a47f232a64c /t/code-hr.t
downloadText-Markdown-master.tar.gz
Text-Markdown-master.zip
Import Text-Markdown-1.000031.tar.gzHEADlocal/Text-Markdownmaster
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");