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
4 changed files
with
108 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#! perl | ||
# Copyright (C) 2009, Parrot Foundation. | ||
# $Id$ | ||
|
||
=head1 Markdown inline link | ||
=head2 Synopsis | ||
% perl t/31-link.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', 'inline link' ); | ||
This is an [example link](http://example.com/). | ||
CODE | ||
<p>This is an <a href="http://example.com/">example link</a>.</p> | ||
|
||
OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'inline link with title' ); | ||
This is an [example link](http://example.com/ "With a Title"). | ||
CODE | ||
<p>This is an <a href="http://example.com/" title="With a Title">example link</a>.</p> | ||
|
||
OUT | ||
|
||
|
||
# Local Variables: | ||
# mode: cperl | ||
# cperl-indent-level: 4 | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4: |