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.
- Loading branch information
Showing
5 changed files
with
137 additions
and
0 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
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,76 @@ | ||
#! perl | ||
# Copyright (C) 2009, Parrot Foundation. | ||
# $Id$ | ||
|
||
=head1 Markdown code block | ||
=head2 Synopsis | ||
% perl t/15-codeblock.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', 'CodeBlock 1' ); | ||
This is a normal paragraph: | ||
This is a code block. | ||
CODE | ||
<p>This is a normal paragraph:</p> | ||
|
||
<pre><code>This is a code block. | ||
</code></pre> | ||
|
||
OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'CodeBlock 2' ); | ||
Here is an example of AppleScript: | ||
tell application "Foo" | ||
bell | ||
end tell | ||
CODE | ||
<p>Here is an example of AppleScript:</p> | ||
|
||
<pre><code>tell application "Foo" | ||
bell | ||
end tell | ||
</code></pre> | ||
|
||
OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'CodeBlock HTML' ); | ||
HTML fragment: | ||
<div class="footer"> | ||
© 2004 Foo Corporation | ||
</div> | ||
CODE | ||
<p>HTML fragment:</p> | ||
|
||
<pre><code><div class="footer"> | ||
&copy; 2004 Foo Corporation | ||
</div> | ||
</code></pre> | ||
|
||
OUT | ||
|
||
# Local Variables: | ||
# mode: cperl | ||
# cperl-indent-level: 4 | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4: |