This repository has been archived by the owner on Jun 9, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
check smart extensions
- Loading branch information
Showing
6 changed files
with
120 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2009, Parrot Foundation. | ||
# $Id$ | ||
|
||
.namespace [ 'Markdown';'Grammar' ] | ||
|
||
.sub 'is_strict' :method | ||
$P0 = new 'Env' | ||
$S0 = $P0['MARKDOWN_STRICT'] | ||
.return ($S0) | ||
.end | ||
|
||
# Local Variables: | ||
# mode: pir | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4 ft=pir: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#! perl | ||
# Copyright (C) 2008-2009, Parrot Foundation. | ||
# $Id$ | ||
|
||
=head1 Markdown smart extensions | ||
=head2 Synopsis | ||
% perl t/24-smart.t | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
use FindBin; | ||
use lib "$FindBin::Bin/../../../lib", "$FindBin::Bin"; | ||
|
||
use Parrot::Test tests => 2; | ||
use Test::More; | ||
|
||
#language_output_is( 'markdown', <<'CODE', <<'OUT', 'apostrophe' ); | ||
# | ||
#smart ' | ||
# | ||
#CODE | ||
#<p>smart ’</p> | ||
# | ||
#OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'ellipsis' ); | ||
smart ... | ||
smart . . . | ||
CODE | ||
<p>smart …</p> | ||
|
||
<p>smart …</p> | ||
|
||
OUT | ||
|
||
#language_output_is( 'markdown', <<'CODE', <<'OUT', 'endash' ); | ||
# | ||
#smart - | ||
# | ||
#CODE | ||
#<p>smart –</p> | ||
# | ||
#OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'emdash' ); | ||
smart -- | ||
smart --- | ||
CODE | ||
<p>smart —</p> | ||
|
||
<p>smart —</p> | ||
|
||
OUT | ||
|
||
|
||
# Local Variables: | ||
# mode: cperl | ||
# cperl-indent-level: 4 | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters