File: code-hr.t

package info (click to toggle)
libtext-markdown-perl 1.000031-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,988 kB
  • sloc: perl: 2,164; makefile: 9
file content (16 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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");