#! perl
# Copyright (C) 2008, The Perl Foundation.
# $Id: /mirror/trunk/languages/markdown/t/22-escape.t 34285 2008-12-22T21:01:02.443642Z fperrad  $

=head1 NAME

t/22-escape.t - Markdown escapes

=head1 SYNOPSIS

    % perl t/22-escape.t

=cut

use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../../../lib", "$FindBin::Bin";

use Parrot::Test tests => 3;
use Test::More;

language_output_is( 'markdown', <<'CODE', <<'OUT', 'asterisk' );

\*literal astericks\*

CODE
<p>*literal astericks*</p>

OUT

language_output_is( 'markdown', <<'CODE', <<'OUT', 'dot' );

1986\. What a great season.

CODE
<p>1986. What a great season.</p>

OUT

language_output_is( 'markdown', <<'CODE', <<'OUT', 'symbol (not escaped)' );

Hello, World!

CODE
<p>Hello, World!</p>

OUT

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
