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
103 additions
and
5 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,63 @@ | ||
#! perl | ||
# Copyright (C) 2009, Parrot Foundation. | ||
# $Id$ | ||
|
||
=head1 Markdown reference link | ||
=head2 Synopsis | ||
% perl t/32-reflink.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', 'reference link double' ); | ||
You can also put the [link URL][1] below the current paragraph like [this][2]. | ||
[1]: http://url | ||
[2]: http://another.url "A funky title" | ||
CODE | ||
<p>You can also put the <a href="http://url">link URL</a> below the current paragraph like <a href="http://another.url" title="A funky title">this</a>.</p> | ||
|
||
OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'reference link simple' ); | ||
Or you can use a [shortcut][] reference, which links the text "shortcut" | ||
[shortcut]: http://goes/with/the/link/name/text | ||
CODE | ||
<p>Or you can use a <a href="http://goes/with/the/link/name/text">shortcut</a> reference, which links the text "shortcut"</p> | ||
|
||
OUT | ||
|
||
language_output_is( 'markdown', <<'CODE', <<'OUT', 'reference link simple', todo => 'bug with quoted ref' ); | ||
Or you can use a [shortcut][] reference, which links the text "shortcut" | ||
to the link named "[shortcut]" on the next paragraph. | ||
[shortcut]: http://goes/with/the/link/name/text | ||
CODE | ||
<p>Or you can use a <a href="http://goes/with/the/link/name/text">shortcut</a> reference, which links the text "shortcut" | ||
to the link named "[shortcut]" on the next paragraph.</p> | ||
|
||
OUT | ||
|
||
|
||
# Local Variables: | ||
# mode: cperl | ||
# cperl-indent-level: 4 | ||
# fill-column: 100 | ||
# End: | ||
# vim: expandtab shiftwidth=4: |