git.iko.soy/typeable/pandoc
on master help sign in
Removed old MarkdownTest_1.0.3 directory (not currently used).

Closes #1104.

commit8e79bbde1e11399d5fac1fa5ae4c83bb1d3b4fc7 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 27 Dec 2013, 13:36 (13 years ago) parent3f26a02
45 files changed−3905
tests/MarkdownTest_1.0.3/MarkdownTest.pl−176 tests/MarkdownTest_1.0.3/Tests/Amps and angle encoding.html−17 tests/MarkdownTest_1.0.3/Tests/Amps and angle encoding.text−21 tests/MarkdownTest_1.0.3/Tests/Auto links.html−18 tests/MarkdownTest_1.0.3/Tests/Auto links.text−13 tests/MarkdownTest_1.0.3/Tests/Backslash escapes.html−118 tests/MarkdownTest_1.0.3/Tests/Backslash escapes.text−120 tests/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.html−15 tests/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.text−11 tests/MarkdownTest_1.0.3/Tests/Code Blocks.html−18 tests/MarkdownTest_1.0.3/Tests/Code Blocks.text−14 tests/MarkdownTest_1.0.3/Tests/Code Spans.html−6 tests/MarkdownTest_1.0.3/Tests/Code Spans.text−6 tests/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.html−8 tests/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.text−8 tests/MarkdownTest_1.0.3/Tests/Horizontal rules.html−71 tests/MarkdownTest_1.0.3/Tests/Horizontal rules.text−67 tests/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).html−15 tests/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).text−15 tests/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).html−72 tests/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).text−69 tests/MarkdownTest_1.0.3/Tests/Inline HTML comments.html−13 tests/MarkdownTest_1.0.3/Tests/Inline HTML comments.text−13 tests/MarkdownTest_1.0.3/Tests/Links, inline style.html−11 tests/MarkdownTest_1.0.3/Tests/Links, inline style.text−12 tests/MarkdownTest_1.0.3/Tests/Links, reference style.html−52 tests/MarkdownTest_1.0.3/Tests/Links, reference style.text−71 tests/MarkdownTest_1.0.3/Tests/Links, shortcut references.html−9 tests/MarkdownTest_1.0.3/Tests/Links, shortcut references.text−20 tests/MarkdownTest_1.0.3/Tests/Literal quotes in titles.html−3 tests/MarkdownTest_1.0.3/Tests/Literal quotes in titles.text−7 tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.html−314 tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.text−306 tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.html−942 tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.text−888 tests/MarkdownTest_1.0.3/Tests/Nested blockquotes.html−9 tests/MarkdownTest_1.0.3/Tests/Nested blockquotes.text−5 tests/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.html−148 tests/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.text−131 tests/MarkdownTest_1.0.3/Tests/Strong and em together.html−7 tests/MarkdownTest_1.0.3/Tests/Strong and em together.text−7 tests/MarkdownTest_1.0.3/Tests/Tabs.html−25 tests/MarkdownTest_1.0.3/Tests/Tabs.text−21 tests/MarkdownTest_1.0.3/Tests/Tidyness.html−8 tests/MarkdownTest_1.0.3/Tests/Tidyness.text−5
tests/MarkdownTest_1.0.3/MarkdownTest.pldeleted−176
@@ -1,176 +0,0 @@
1−#!/usr/bin/perl
2−
3−#
4−# MarkdownTester -- Run tests for Markdown implementations
5−#
6−# Copyright (c) 2004-2005 John Gruber
7−# <http://daringfireball.net/projects/markdown/>
8−#
9−
10−use strict;
11−use warnings;
12−use Getopt::Long;
13−use Benchmark;
14−
15−our $VERSION = '1.0.2';
16−# Sat 24 Dec 2005
17−
18−my $time_start = new Benchmark;
19−my $test_dir = "Tests";
20−my $script = "./Markdown.pl";
21−my $use_tidy = 0;
22−my ($flag_version);
23−
24−GetOptions (
25− "script=s" => \$script,
26− "testdir=s" => \$test_dir,
27− "tidy" => \$use_tidy,
28− "version" => \$flag_version,
29− );
30−
31−if($flag_version) {
32− my $progname = $0;
33− $progname =~ s{.*/}{};
34− die "$progname version $VERSION\n";
35−}
36−
37−unless (-d $test_dir) { die "'$test_dir' is not a directory.\n"; }
38−unless (-f $script) { die "$script does not exist.\n"; }
39−unless (-x $script) { die "$script is not executable.\n"; }
40−
41−my $tests_passed = 0;
42−my $tests_failed = 0;
43−
44−TEST:
45−foreach my $testfile (glob "$test_dir/*.text") {
46− my $testname = $testfile;
47− $testname =~ s{.*/(.+)\.text$}{$1}i;
48− print "$testname ... ";
49−
50− # Look for a corresponding .html file for each .text file:
51− my $resultfile = $testfile;
52− $resultfile =~ s{\.text$}{\.html}i;
53− unless (-f $resultfile) {
54− print "'$resultfile' does not exist.\n\n";
55− next TEST;
56− }
57−
58− # open(TEST, $testfile) || die("Can't open testfile: $!");
59− open(RESULT, $resultfile) || die("Can't open resultfile: $!");
60− undef $/;
61− # my $t_input = <TEST>;
62− my $t_result = <RESULT>;
63−
64− my $t_output = `'$script' '$testfile'`;
65−
66− # Normalize the output and expected result strings:
67− $t_result =~ s/\s+\z//; # trim trailing whitespace
68− $t_output =~ s/\s+\z//; # trim trailing whitespace
69− if ($use_tidy) {
70− # Escape the strings, pass them through to CLI tidy tool for tag-level equivalency
71− $t_result =~ s{'}{'\\''}g; # escape ' chars for shell
72− $t_output =~ s{'}{'\\''}g;
73− $t_result = `echo '$t_result' | tidy --show-body-only 1 --quiet 1 --show-warnings 0`;
74− $t_output = `echo '$t_output' | tidy --show-body-only 1 --quiet 1 --show-warnings 0`;
75− }
76−
77− if ($t_output eq $t_result) {
78− print "OK\n";
79− $tests_passed++;
80− }
81− else {
82− print "FAILED\n\n";
83−# This part added by JM to print diffs
84− open(OUT, '>tmp1') or die $!;
85− print OUT $t_output or die $!;
86− open(RES, '>tmp2') or die $!;
87− print RES $t_result or die $!;
88− print `diff tmp1 tmp2`;
89− close RES;
90− close OUT;
91− print "\n";
92− `rm tmp?`;
93−# End of added part
94− $tests_failed++;
95− }
96−}
97−
98−print "\n\n";
99−print "$tests_passed passed; $tests_failed failed.\n";
100−
101−my $time_end = new Benchmark;
102−my $time_diff = timediff($time_end, $time_start);
103−print "Benchmark: ", timestr($time_diff), "\n";
104−
105−
106−__END__
107−
108−=pod
109−
110−=head1 NAME
111−
112−B<MarkdownTest>
113−
114−
115−=head1 SYNOPSIS
116−
117−B<MarkdownTest.pl> [ B<--options> ] [ I<file> ... ]
118−
119−
120−=head1 DESCRIPTION
121−
122−
123−=head1 OPTIONS
124−
125−Use "--" to end switch parsing. For example, to open a file named "-z", use:
126−
127− MarkdownTest.pl -- -z
128−
129−=over 4
130−
131−=item B<--script>
132−
133−Specify the path to the Markdown script to test. Defaults to
134−"./Markdown.pl". Example:
135−
136− ./MarkdownTest.pl --script ./PHP-Markdown/php-markdown
137−
138−=item B<--testdir>
139−
140−Specify the path to a directory containing test data. Defaults to "Tests".
141−
142−=item B<--tidy>
143−
144−Flag to turn on using the command line 'tidy' tool to normalize HTML
145−output before comparing script output to the expected test result.
146−Assumes that the 'tidy' command is available in your PATH. Defaults to
147−off.
148−
149−=back
150−
151−
152−
153−=head1 BUGS
154−
155−
156−
157−=head1 VERSION HISTORY
158−
159−1.0 Mon 13 Dec 2004-2005
160−
161−1.0.1 Mon 19 Sep 2005
162−
163− + Better handling of case when foo.text exists, but foo.html doesn't.
164− It now prints a message and moves on, rather than dying.
165−
166−
167−=head1 COPYRIGHT AND LICENSE
168−
169−Copyright (c) 2004-2005 John Gruber
170−<http://daringfireball.net/>
171−All rights reserved.
172−
173−This is free software; you may redistribute it and/or modify it under
174−the same terms as Perl itself.
175−
176−=cut
tests/MarkdownTest_1.0.3/Tests/Amps and angle encoding.htmldeleted−17
@@ -1,17 +0,0 @@
1−<p>AT&amp;T has an ampersand in their name.</p>
2−
3−<p>AT&amp;T is another way to write it.</p>
4−
5−<p>This &amp; that.</p>
6−
7−<p>4 &lt; 5.</p>
8−
9−<p>6 > 5.</p>
10−
11−<p>Here's a <a href="http://example.com/?foo=1&amp;bar=2">link</a> with an ampersand in the URL.</p>
12−
13−<p>Here's a link with an amersand in the link text: <a href="http://att.com/" title="AT&amp;T">AT&amp;T</a>.</p>
14−
15−<p>Here's an inline <a href="/script?foo=1&amp;bar=2">link</a>.</p>
16−
17−<p>Here's an inline <a href="/script?foo=1&amp;bar=2">link</a>.</p>
tests/MarkdownTest_1.0.3/Tests/Amps and angle encoding.textdeleted−21
@@ -1,21 +0,0 @@
1−AT&T has an ampersand in their name.
2−
3−AT&amp;T is another way to write it.
4−
5−This & that.
6−
7−4 < 5.
8−
9−6 > 5.
10−
11−Here's a [link] [1] with an ampersand in the URL.
12−
13−Here's a link with an amersand in the link text: [AT&T] [2].
14−
15−Here's an inline [link](/script?foo=1&bar=2).
16−
17−Here's an inline [link](</script?foo=1&bar=2>).
18−
19−
20−[1]: http://example.com/?foo=1&bar=2
21−[2]: http://att.com/ "AT&T"
tests/MarkdownTest_1.0.3/Tests/Auto links.htmldeleted−18
@@ -1,18 +0,0 @@
1−<p>Link: <a href="http://example.com/">http://example.com/</a>.</p>
2−
3−<p>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a></p>
4−
5−<ul>
6−<li>In a list?</li>
7−<li><a href="http://example.com/">http://example.com/</a></li>
8−<li>It should.</li>
9−</ul>
10−
11−<blockquote>
12− <p>Blockquoted: <a href="http://example.com/">http://example.com/</a></p>
13−</blockquote>
14−
15−<p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code></p>
16−
17−<pre><code>or here: &lt;http://example.com/&gt;
18−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Auto links.textdeleted−13
@@ -1,13 +0,0 @@
1−Link: <http://example.com/>.
2−
3−With an ampersand: <http://example.com/?foo=1&bar=2>
4−
5−* In a list?
6−* <http://example.com/>
7−* It should.
8−
9−> Blockquoted: <http://example.com/>
10−
11−Auto-links should not occur here: `<http://example.com/>`
12−
13− or here: <http://example.com/>
tests/MarkdownTest_1.0.3/Tests/Backslash escapes.htmldeleted−118
@@ -1,118 +0,0 @@
1−<p>These should all get escaped:</p>
2−
3−<p>Backslash: \</p>
4−
5−<p>Backtick: `</p>
6−
7−<p>Asterisk: *</p>
8−
9−<p>Underscore: _</p>
10−
11−<p>Left brace: {</p>
12−
13−<p>Right brace: }</p>
14−
15−<p>Left bracket: [</p>
16−
17−<p>Right bracket: ]</p>
18−
19−<p>Left paren: (</p>
20−
21−<p>Right paren: )</p>
22−
23−<p>Greater-than: ></p>
24−
25−<p>Hash: #</p>
26−
27−<p>Period: .</p>
28−
29−<p>Bang: !</p>
30−
31−<p>Plus: +</p>
32−
33−<p>Minus: -</p>
34−
35−<p>These should not, because they occur within a code block:</p>
36−
37−<pre><code>Backslash: \\
38−
39−Backtick: \`
40−
41−Asterisk: \*
42−
43−Underscore: \_
44−
45−Left brace: \{
46−
47−Right brace: \}
48−
49−Left bracket: \[
50−
51−Right bracket: \]
52−
53−Left paren: \(
54−
55−Right paren: \)
56−
57−Greater-than: \&gt;
58−
59−Hash: \#
60−
61−Period: \.
62−
63−Bang: \!
64−
65−Plus: \+
66−
67−Minus: \-
68−</code></pre>
69−
70−<p>Nor should these, which occur in code spans:</p>
71−
72−<p>Backslash: <code>\\</code></p>
73−
74−<p>Backtick: <code>\`</code></p>
75−
76−<p>Asterisk: <code>\*</code></p>
77−
78−<p>Underscore: <code>\_</code></p>
79−
80−<p>Left brace: <code>\{</code></p>
81−
82−<p>Right brace: <code>\}</code></p>
83−
84−<p>Left bracket: <code>\[</code></p>
85−
86−<p>Right bracket: <code>\]</code></p>
87−
88−<p>Left paren: <code>\(</code></p>
89−
90−<p>Right paren: <code>\)</code></p>
91−
92−<p>Greater-than: <code>\&gt;</code></p>
93−
94−<p>Hash: <code>\#</code></p>
95−
96−<p>Period: <code>\.</code></p>
97−
98−<p>Bang: <code>\!</code></p>
99−
100−<p>Plus: <code>\+</code></p>
101−
102−<p>Minus: <code>\-</code></p>
103−
104−
105−<p>These should get escaped, even though they're matching pairs for
106−other Markdown constructs:</p>
107−
108−<p>*asterisks*</p>
109−
110−<p>_underscores_</p>
111−
112−<p>`backticks`</p>
113−
114−<p>This is a code span with a literal backslash-backtick sequence: <code>\`</code></p>
115−
116−<p>This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.</p>
117−
118−<p>This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.</p>
tests/MarkdownTest_1.0.3/Tests/Backslash escapes.textdeleted−120
@@ -1,120 +0,0 @@
1−These should all get escaped:
2−
3−Backslash: \\
4−
5−Backtick: \`
6−
7−Asterisk: \*
8−
9−Underscore: \_
10−
11−Left brace: \{
12−
13−Right brace: \}
14−
15−Left bracket: \[
16−
17−Right bracket: \]
18−
19−Left paren: \(
20−
21−Right paren: \)
22−
23−Greater-than: \>
24−
25−Hash: \#
26−
27−Period: \.
28−
29−Bang: \!
30−
31−Plus: \+
32−
33−Minus: \-
34−
35−
36−
37−These should not, because they occur within a code block:
38−
39− Backslash: \\
40−
41− Backtick: \`
42−
43− Asterisk: \*
44−
45− Underscore: \_
46−
47− Left brace: \{
48−
49− Right brace: \}
50−
51− Left bracket: \[
52−
53− Right bracket: \]
54−
55− Left paren: \(
56−
57− Right paren: \)
58−
59− Greater-than: \>
60−
61− Hash: \#
62−
63− Period: \.
64−
65− Bang: \!
66−
67− Plus: \+
68−
69− Minus: \-
70−
71−
72−Nor should these, which occur in code spans:
73−
74−Backslash: `\\`
75−
76−Backtick: `` \` ``
77−
78−Asterisk: `\*`
79−
80−Underscore: `\_`
81−
82−Left brace: `\{`
83−
84−Right brace: `\}`
85−
86−Left bracket: `\[`
87−
88−Right bracket: `\]`
89−
90−Left paren: `\(`
91−
92−Right paren: `\)`
93−
94−Greater-than: `\>`
95−
96−Hash: `\#`
97−
98−Period: `\.`
99−
100−Bang: `\!`
101−
102−Plus: `\+`
103−
104−Minus: `\-`
105−
106−
107−These should get escaped, even though they're matching pairs for
108−other Markdown constructs:
109−
110−\*asterisks\*
111−
112−\_underscores\_
113−
114−\`backticks\`
115−
116−This is a code span with a literal backslash-backtick sequence: `` \` ``
117−
118−This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.
119−
120−This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.
tests/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.htmldeleted−15
@@ -1,15 +0,0 @@
1−<blockquote>
2− <p>Example:</p>
3−
4−<pre><code>sub status {
5− print "working";
6−}
7−</code></pre>
8−
9− <p>Or:</p>
10−
11−<pre><code>sub status {
12− return "working";
13−}
14−</code></pre>
15−</blockquote>
tests/MarkdownTest_1.0.3/Tests/Blockquotes with code blocks.textdeleted−11
@@ -1,11 +0,0 @@
1−> Example:
2−>
3−> sub status {
4−> print "working";
5−> }
6−>
7−> Or:
8−>
9−> sub status {
10−> return "working";
11−> }
tests/MarkdownTest_1.0.3/Tests/Code Blocks.htmldeleted−18
@@ -1,18 +0,0 @@
1−<pre><code>code block on the first line
2−</code></pre>
3−
4−<p>Regular text.</p>
5−
6−<pre><code>code block indented by spaces
7−</code></pre>
8−
9−<p>Regular text.</p>
10−
11−<pre><code>the lines in this block
12−all contain trailing spaces
13−</code></pre>
14−
15−<p>Regular Text.</p>
16−
17−<pre><code>code block on the last line
18−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Code Blocks.textdeleted−14
@@ -1,14 +0,0 @@
1− code block on the first line
2−
3−Regular text.
4−
5− code block indented by spaces
6−
7−Regular text.
8−
9− the lines in this block
10− all contain trailing spaces
11−
12−Regular Text.
13−
14− code block on the last line
tests/MarkdownTest_1.0.3/Tests/Code Spans.htmldeleted−6
@@ -1,6 +0,0 @@
1−<p><code>&lt;test a="</code> content of attribute <code>"&gt;</code></p>
2−
3−<p>Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span></p>
4−
5−<p>Here's how you put <code>`backticks`</code> in a code span.</p>
6−
tests/MarkdownTest_1.0.3/Tests/Code Spans.textdeleted−6
@@ -1,6 +0,0 @@
1−`<test a="` content of attribute `">`
2−
3−Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span>
4−
5−Here's how you put `` `backticks` `` in a code span.
6−
tests/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.htmldeleted−8
@@ -1,8 +0,0 @@
1−<p>In Markdown 1.0.0 and earlier. Version
2−8. This line turns into a list item.
3−Because a hard-wrapped line in the
4−middle of a paragraph looked like a
5−list item.</p>
6−
7−<p>Here's one with a bullet.
8−* criminey.</p>
tests/MarkdownTest_1.0.3/Tests/Hard-wrapped paragraphs with list-like lines.textdeleted−8
@@ -1,8 +0,0 @@
1−In Markdown 1.0.0 and earlier. Version
2−8. This line turns into a list item.
3−Because a hard-wrapped line in the
4−middle of a paragraph looked like a
5−list item.
6−
7−Here's one with a bullet.
8−* criminey.
tests/MarkdownTest_1.0.3/Tests/Horizontal rules.htmldeleted−71
@@ -1,71 +0,0 @@
1−<p>Dashes:</p>
2−
3−<hr />
4−
5−<hr />
6−
7−<hr />
8−
9−<hr />
10−
11−<pre><code>---
12−</code></pre>
13−
14−<hr />
15−
16−<hr />
17−
18−<hr />
19−
20−<hr />
21−
22−<pre><code>- - -
23−</code></pre>
24−
25−<p>Asterisks:</p>
26−
27−<hr />
28−
29−<hr />
30−
31−<hr />
32−
33−<hr />
34−
35−<pre><code>***
36−</code></pre>
37−
38−<hr />
39−
40−<hr />
41−
42−<hr />
43−
44−<hr />
45−
46−<pre><code>* * *
47−</code></pre>
48−
49−<p>Underscores:</p>
50−
51−<hr />
52−
53−<hr />
54−
55−<hr />
56−
57−<hr />
58−
59−<pre><code>___
60−</code></pre>
61−
62−<hr />
63−
64−<hr />
65−
66−<hr />
67−
68−<hr />
69−
70−<pre><code>_ _ _
71−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Horizontal rules.textdeleted−67
@@ -1,67 +0,0 @@
1−Dashes:
2−
3−---
4−
5− ---
6−
7− ---
8−
9− ---
10−
11− ---
12−
13−- - -
14−
15− - - -
16−
17− - - -
18−
19− - - -
20−
21− - - -
22−
23−
24−Asterisks:
25−
26−***
27−
28− ***
29−
30− ***
31−
32− ***
33−
34− ***
35−
36−* * *
37−
38− * * *
39−
40− * * *
41−
42− * * *
43−
44− * * *
45−
46−
47−Underscores:
48−
49−___
50−
51− ___
52−
53− ___
54−
55− ___
56−
57− ___
58−
59−_ _ _
60−
61− _ _ _
62−
63− _ _ _
64−
65− _ _ _
66−
67− _ _ _
tests/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).htmldeleted−15
@@ -1,15 +0,0 @@
1−<p>Simple block on one line:</p>
2−
3−<div>foo</div>
4−
5−<p>And nested without indentation:</p>
6−
7−<div>
8−<div>
9−<div>
10−foo
11−</div>
12−<div style=">"/>
13−</div>
14−<div>bar</div>
15−</div>
tests/MarkdownTest_1.0.3/Tests/Inline HTML (Advanced).textdeleted−15
@@ -1,15 +0,0 @@
1−Simple block on one line:
2−
3−<div>foo</div>
4−
5−And nested without indentation:
6−
7−<div>
8−<div>
9−<div>
10−foo
11−</div>
12−<div style=">"/>
13−</div>
14−<div>bar</div>
15−</div>
tests/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).htmldeleted−72
@@ -1,72 +0,0 @@
1−<p>Here's a simple block:</p>
2−
3−<div>
4− foo
5−</div>
6−
7−<p>This should be a code block, though:</p>
8−
9−<pre><code>&lt;div&gt;
10− foo
11−&lt;/div&gt;
12−</code></pre>
13−
14−<p>As should this:</p>
15−
16−<pre><code>&lt;div&gt;foo&lt;/div&gt;
17−</code></pre>
18−
19−<p>Now, nested:</p>
20−
21−<div>
22− <div>
23− <div>
24− foo
25− </div>
26− </div>
27−</div>
28−
29−<p>This should just be an HTML comment:</p>
30−
31−<!-- Comment -->
32−
33−<p>Multiline:</p>
34−
35−<!--
36−Blah
37−Blah
38−-->
39−
40−<p>Code block:</p>
41−
42−<pre><code>&lt;!-- Comment --&gt;
43−</code></pre>
44−
45−<p>Just plain comment, with trailing spaces on the line:</p>
46−
47−<!-- foo -->
48−
49−<p>Code:</p>
50−
51−<pre><code>&lt;hr /&gt;
52−</code></pre>
53−
54−<p>Hr's:</p>
55−
56−<hr>
57−
58−<hr/>
59−
60−<hr />
61−
62−<hr>
63−
64−<hr/>
65−
66−<hr />
67−
68−<hr class="foo" id="bar" />
69−
70−<hr class="foo" id="bar"/>
71−
72−<hr class="foo" id="bar" >
tests/MarkdownTest_1.0.3/Tests/Inline HTML (Simple).textdeleted−69
@@ -1,69 +0,0 @@
1−Here's a simple block:
2−
3−<div>
4− foo
5−</div>
6−
7−This should be a code block, though:
8−
9− <div>
10− foo
11− </div>
12−
13−As should this:
14−
15− <div>foo</div>
16−
17−Now, nested:
18−
19−<div>
20− <div>
21− <div>
22− foo
23− </div>
24− </div>
25−</div>
26−
27−This should just be an HTML comment:
28−
29−<!-- Comment -->
30−
31−Multiline:
32−
33−<!--
34−Blah
35−Blah
36−-->
37−
38−Code block:
39−
40− <!-- Comment -->
41−
42−Just plain comment, with trailing spaces on the line:
43−
44−<!-- foo -->
45−
46−Code:
47−
48− <hr />
49−
50−Hr's:
51−
52−<hr>
53−
54−<hr/>
55−
56−<hr />
57−
58−<hr>
59−
60−<hr/>
61−
62−<hr />
63−
64−<hr class="foo" id="bar" />
65−
66−<hr class="foo" id="bar"/>
67−
68−<hr class="foo" id="bar" >
69−
tests/MarkdownTest_1.0.3/Tests/Inline HTML comments.htmldeleted−13
@@ -1,13 +0,0 @@
1−<p>Paragraph one.</p>
2−
3−<!-- This is a simple comment -->
4−
5−<!--
6− This is another comment.
7−-->
8−
9−<p>Paragraph two.</p>
10−
11−<!-- one comment block -- -- with two comments -->
12−
13−<p>The end.</p>
tests/MarkdownTest_1.0.3/Tests/Inline HTML comments.textdeleted−13
@@ -1,13 +0,0 @@
1−Paragraph one.
2−
3−<!-- This is a simple comment -->
4−
5−<!--
6− This is another comment.
7−-->
8−
9−Paragraph two.
10−
11−<!-- one comment block -- -- with two comments -->
12−
13−The end.
tests/MarkdownTest_1.0.3/Tests/Links, inline style.htmldeleted−11
@@ -1,11 +0,0 @@
1−<p>Just a <a href="/url/">URL</a>.</p>
2−
3−<p><a href="/url/" title="title">URL and title</a>.</p>
4−
5−<p><a href="/url/" title="title preceded by two spaces">URL and title</a>.</p>
6−
7−<p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>
8−
9−<p><a href="/url/" title="title has spaces afterward">URL and title</a>.</p>
10−
11−<p><a href="">Empty</a>.</p>
tests/MarkdownTest_1.0.3/Tests/Links, inline style.textdeleted−12
@@ -1,12 +0,0 @@
1−Just a [URL](/url/).
2−
3−[URL and title](/url/ "title").
4−
5−[URL and title](/url/ "title preceded by two spaces").
6−
7−[URL and title](/url/ "title preceded by a tab").
8−
9−[URL and title](/url/ "title has spaces afterward" ).
10−
11−
12−[Empty]().
tests/MarkdownTest_1.0.3/Tests/Links, reference style.htmldeleted−52
@@ -1,52 +0,0 @@
1−<p>Foo <a href="/url/" title="Title">bar</a>.</p>
2−
3−<p>Foo <a href="/url/" title="Title">bar</a>.</p>
4−
5−<p>Foo <a href="/url/" title="Title">bar</a>.</p>
6−
7−<p>With <a href="/url/">embedded [brackets]</a>.</p>
8−
9−<p>Indented <a href="/url">once</a>.</p>
10−
11−<p>Indented <a href="/url">twice</a>.</p>
12−
13−<p>Indented <a href="/url">thrice</a>.</p>
14−
15−<p>Indented [four][] times.</p>
16−
17−<pre><code>[four]: /url
18−</code></pre>
19−
20−<hr />
21−
22−<p><a href="foo">this</a> should work</p>
23−
24−<p>So should <a href="foo">this</a>.</p>
25−
26−<p>And <a href="foo">this</a>.</p>
27−
28−<p>And <a href="foo">this</a>.</p>
29−
30−<p>And <a href="foo">this</a>.</p>
31−
32−<p>But not [that] [].</p>
33−
34−<p>Nor [that][].</p>
35−
36−<p>Nor [that].</p>
37−
38−<p>[Something in brackets like <a href="foo">this</a> should work]</p>
39−
40−<p>[Same with <a href="foo">this</a>.]</p>
41−
42−<p>In this case, <a href="/somethingelse/">this</a> points to something else.</p>
43−
44−<p>Backslashing should suppress [this] and [this].</p>
45−
46−<hr />
47−
48−<p>Here's one where the <a href="/url/">link
49−breaks</a> across lines.</p>
50−
51−<p>Here's another where the <a href="/url/">link
52−breaks</a> across lines, but with a line-ending space.</p>
tests/MarkdownTest_1.0.3/Tests/Links, reference style.textdeleted−71
@@ -1,71 +0,0 @@
1−Foo [bar] [1].
2−
3−Foo [bar][1].
4−
5−Foo [bar]
6−[1].
7−
8−[1]: /url/ "Title"
9−
10−
11−With [embedded [brackets]] [b].
12−
13−
14−Indented [once][].
15−
16−Indented [twice][].
17−
18−Indented [thrice][].
19−
20−Indented [four][] times.
21−
22− [once]: /url
23−
24− [twice]: /url
25−
26− [thrice]: /url
27−
28− [four]: /url
29−
30−
31−[b]: /url/
32−
33−* * *
34−
35−[this] [this] should work
36−
37−So should [this][this].
38−
39−And [this] [].
40−
41−And [this][].
42−
43−And [this].
44−
45−But not [that] [].
46−
47−Nor [that][].
48−
49−Nor [that].
50−
51−[Something in brackets like [this][] should work]
52−
53−[Same with [this].]
54−
55−In this case, [this](/somethingelse/) points to something else.
56−
57−Backslashing should suppress \[this] and [this\].
58−
59−[this]: foo
60−
61−
62−* * *
63−
64−Here's one where the [link
65−breaks] across lines.
66−
67−Here's another where the [link
68−breaks] across lines, but with a line-ending space.
69−
70−
71−[link breaks]: /url/
tests/MarkdownTest_1.0.3/Tests/Links, shortcut references.htmldeleted−9
@@ -1,9 +0,0 @@
1−<p>This is the <a href="/simple">simple case</a>.</p>
2−
3−<p>This one has a <a href="/foo">line
4−break</a>.</p>
5−
6−<p>This one has a <a href="/foo">line
7−break</a> with a line-ending space.</p>
8−
9−<p><a href="/that">this</a> and the <a href="/other">other</a></p>
tests/MarkdownTest_1.0.3/Tests/Links, shortcut references.textdeleted−20
@@ -1,20 +0,0 @@
1−This is the [simple case].
2−
3−[simple case]: /simple
4−
5−
6−
7−This one has a [line
8−break].
9−
10−This one has a [line
11−break] with a line-ending space.
12−
13−[line break]: /foo
14−
15−
16−[this] [that] and the [other]
17−
18−[this]: /this
19−[that]: /that
20−[other]: /other
tests/MarkdownTest_1.0.3/Tests/Literal quotes in titles.htmldeleted−3
@@ -1,3 +0,0 @@
1−<p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
2−
3−<p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
tests/MarkdownTest_1.0.3/Tests/Literal quotes in titles.textdeleted−7
@@ -1,7 +0,0 @@
1−Foo [bar][].
2−
3−Foo [bar](/url/ "Title with "quotes" inside").
4−
5−
6− [bar]: /url/ "Title with "quotes" inside"
7−
tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.htmldeleted−314
@@ -1,314 +0,0 @@
1−<h1>Markdown: Basics</h1>
2−
3−<ul id="ProjectSubmenu">
4− <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
5− <li><a class="selected" title="Markdown Basics">Basics</a></li>
6− <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li>
7− <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
8− <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
9−</ul>
10−
11−<h2>Getting the Gist of Markdown's Formatting Syntax</h2>
12−
13−<p>This page offers a brief overview of what it's like to use Markdown.
14−The <a href="/projects/markdown/syntax" title="Markdown Syntax">syntax page</a> provides complete, detailed documentation for
15−every feature, but Markdown should be very easy to pick up simply by
16−looking at a few examples of it in action. The examples on this page
17−are written in a before/after style, showing example syntax and the
18−HTML output produced by Markdown.</p>
19−
20−<p>It's also helpful to simply try Markdown out; the <a href="/projects/markdown/dingus" title="Markdown Dingus">Dingus</a> is a
21−web application that allows you type your own Markdown-formatted text
22−and translate it to XHTML.</p>
23−
24−<p><strong>Note:</strong> This document is itself written using Markdown; you
25−can <a href="/projects/markdown/basics.text">see the source for it by adding '.text' to the URL</a>.</p>
26−
27−<h2>Paragraphs, Headers, Blockquotes</h2>
28−
29−<p>A paragraph is simply one or more consecutive lines of text, separated
30−by one or more blank lines. (A blank line is any line that looks like a
31−blank line -- a line containing nothing spaces or tabs is considered
32−blank.) Normal paragraphs should not be intended with spaces or tabs.</p>
33−
34−<p>Markdown offers two styles of headers: <em>Setext</em> and <em>atx</em>.
35−Setext-style headers for <code>&lt;h1&gt;</code> and <code>&lt;h2&gt;</code> are created by
36−"underlining" with equal signs (<code>=</code>) and hyphens (<code>-</code>), respectively.
37−To create an atx-style header, you put 1-6 hash marks (<code>#</code>) at the
38−beginning of the line -- the number of hashes equals the resulting
39−HTML header level.</p>
40−
41−<p>Blockquotes are indicated using email-style '<code>&gt;</code>' angle brackets.</p>
42−
43−<p>Markdown:</p>
44−
45−<pre><code>A First Level Header
46−====================
47−
48−A Second Level Header
49−---------------------
50−
51−Now is the time for all good men to come to
52−the aid of their country. This is just a
53−regular paragraph.
54−
55−The quick brown fox jumped over the lazy
56−dog's back.
57−
58−### Header 3
59−
60−&gt; This is a blockquote.
61−&gt;
62−&gt; This is the second paragraph in the blockquote.
63−&gt;
64−&gt; ## This is an H2 in a blockquote
65−</code></pre>
66−
67−<p>Output:</p>
68−
69−<pre><code>&lt;h1&gt;A First Level Header&lt;/h1&gt;
70−
71−&lt;h2&gt;A Second Level Header&lt;/h2&gt;
72−
73−&lt;p&gt;Now is the time for all good men to come to
74−the aid of their country. This is just a
75−regular paragraph.&lt;/p&gt;
76−
77−&lt;p&gt;The quick brown fox jumped over the lazy
78−dog's back.&lt;/p&gt;
79−
80−&lt;h3&gt;Header 3&lt;/h3&gt;
81−
82−&lt;blockquote&gt;
83− &lt;p&gt;This is a blockquote.&lt;/p&gt;
84−
85− &lt;p&gt;This is the second paragraph in the blockquote.&lt;/p&gt;
86−
87− &lt;h2&gt;This is an H2 in a blockquote&lt;/h2&gt;
88−&lt;/blockquote&gt;
89−</code></pre>
90−
91−<h3>Phrase Emphasis</h3>
92−
93−<p>Markdown uses asterisks and underscores to indicate spans of emphasis.</p>
94−
95−<p>Markdown:</p>
96−
97−<pre><code>Some of these words *are emphasized*.
98−Some of these words _are emphasized also_.
99−
100−Use two asterisks for **strong emphasis**.
101−Or, if you prefer, __use two underscores instead__.
102−</code></pre>
103−
104−<p>Output:</p>
105−
106−<pre><code>&lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
107−Some of these words &lt;em&gt;are emphasized also&lt;/em&gt;.&lt;/p&gt;
108−
109−&lt;p&gt;Use two asterisks for &lt;strong&gt;strong emphasis&lt;/strong&gt;.
110−Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;/p&gt;
111−</code></pre>
112−
113−<h2>Lists</h2>
114−
115−<p>Unordered (bulleted) lists use asterisks, pluses, and hyphens (<code>*</code>,
116−<code>+</code>, and <code>-</code>) as list markers. These three markers are
117−interchangable; this:</p>
118−
119−<pre><code>* Candy.
120−* Gum.
121−* Booze.
122−</code></pre>
123−
124−<p>this:</p>
125−
126−<pre><code>+ Candy.
127−+ Gum.
128−+ Booze.
129−</code></pre>
130−
131−<p>and this:</p>
132−
133−<pre><code>- Candy.
134−- Gum.
135−- Booze.
136−</code></pre>
137−
138−<p>all produce the same output:</p>
139−
140−<pre><code>&lt;ul&gt;
141−&lt;li&gt;Candy.&lt;/li&gt;
142−&lt;li&gt;Gum.&lt;/li&gt;
143−&lt;li&gt;Booze.&lt;/li&gt;
144−&lt;/ul&gt;
145−</code></pre>
146−
147−<p>Ordered (numbered) lists use regular numbers, followed by periods, as
148−list markers:</p>
149−
150−<pre><code>1. Red
151−2. Green
152−3. Blue
153−</code></pre>
154−
155−<p>Output:</p>
156−
157−<pre><code>&lt;ol&gt;
158−&lt;li&gt;Red&lt;/li&gt;
159−&lt;li&gt;Green&lt;/li&gt;
160−&lt;li&gt;Blue&lt;/li&gt;
161−&lt;/ol&gt;
162−</code></pre>
163−
164−<p>If you put blank lines between items, you'll get <code>&lt;p&gt;</code> tags for the
165−list item text. You can create multi-paragraph list items by indenting
166−the paragraphs by 4 spaces or 1 tab:</p>
167−
168−<pre><code>* A list item.
169−
170− With multiple paragraphs.
171−
172−* Another item in the list.
173−</code></pre>
174−
175−<p>Output:</p>
176−
177−<pre><code>&lt;ul&gt;
178−&lt;li&gt;&lt;p&gt;A list item.&lt;/p&gt;
179−&lt;p&gt;With multiple paragraphs.&lt;/p&gt;&lt;/li&gt;
180−&lt;li&gt;&lt;p&gt;Another item in the list.&lt;/p&gt;&lt;/li&gt;
181−&lt;/ul&gt;
182−</code></pre>
183−
184−<h3>Links</h3>
185−
186−<p>Markdown supports two styles for creating links: <em>inline</em> and
187−<em>reference</em>. With both styles, you use square brackets to delimit the
188−text you want to turn into a link.</p>
189−
190−<p>Inline-style links use parentheses immediately after the link text.
191−For example:</p>
192−
193−<pre><code>This is an [example link](http://example.com/).
194−</code></pre>
195−
196−<p>Output:</p>
197−
198−<pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/"&gt;
199−example link&lt;/a&gt;.&lt;/p&gt;
200−</code></pre>
201−
202−<p>Optionally, you may include a title attribute in the parentheses:</p>
203−
204−<pre><code>This is an [example link](http://example.com/ "With a Title").
205−</code></pre>
206−
207−<p>Output:</p>
208−
209−<pre><code>&lt;p&gt;This is an &lt;a href="http://example.com/" title="With a Title"&gt;
210−example link&lt;/a&gt;.&lt;/p&gt;
211−</code></pre>
212−
213−<p>Reference-style links allow you to refer to your links by names, which
214−you define elsewhere in your document:</p>
215−
216−<pre><code>I get 10 times more traffic from [Google][1] than from
217−[Yahoo][2] or [MSN][3].
218−
219−[1]: http://google.com/ "Google"
220−[2]: http://search.yahoo.com/ "Yahoo Search"
221−[3]: http://search.msn.com/ "MSN Search"
222−</code></pre>
223−
224−<p>Output:</p>
225−
226−<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href="http://google.com/"
227−title="Google"&gt;Google&lt;/a&gt; than from &lt;a href="http://search.yahoo.com/"
228−title="Yahoo Search"&gt;Yahoo&lt;/a&gt; or &lt;a href="http://search.msn.com/"
229−title="MSN Search"&gt;MSN&lt;/a&gt;.&lt;/p&gt;
230−</code></pre>
231−
232−<p>The title attribute is optional. Link names may contain letters,
233−numbers and spaces, but are <em>not</em> case sensitive:</p>
234−
235−<pre><code>I start my morning with a cup of coffee and
236−[The New York Times][NY Times].
237−
238−[ny times]: http://www.nytimes.com/
239−</code></pre>
240−
241−<p>Output:</p>
242−
243−<pre><code>&lt;p&gt;I start my morning with a cup of coffee and
244−&lt;a href="http://www.nytimes.com/"&gt;The New York Times&lt;/a&gt;.&lt;/p&gt;
245−</code></pre>
246−
247−<h3>Images</h3>
248−
249−<p>Image syntax is very much like link syntax.</p>
250−
251−<p>Inline (titles are optional):</p>
252−
253−<pre><code>![alt text](/path/to/img.jpg "Title")
254−</code></pre>
255−
256−<p>Reference-style:</p>
257−
258−<pre><code>![alt text][id]
259−
260−[id]: /path/to/img.jpg "Title"
261−</code></pre>
262−
263−<p>Both of the above examples produce the same output:</p>
264−
265−<pre><code>&lt;img src="/path/to/img.jpg" alt="alt text" title="Title" /&gt;
266−</code></pre>
267−
268−<h3>Code</h3>
269−
270−<p>In a regular paragraph, you can create code span by wrapping text in
271−backtick quotes. Any ampersands (<code>&amp;</code>) and angle brackets (<code>&lt;</code> or
272−<code>&gt;</code>) will automatically be translated into HTML entities. This makes
273−it easy to use Markdown to write about HTML example code:</p>
274−
275−<pre><code>I strongly recommend against using any `&lt;blink&gt;` tags.
276−
277−I wish SmartyPants used named entities like `&amp;mdash;`
278−instead of decimal-encoded entites like `&amp;#8212;`.
279−</code></pre>
280−
281−<p>Output:</p>
282−
283−<pre><code>&lt;p&gt;I strongly recommend against using any
284−&lt;code&gt;&amp;lt;blink&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
285−
286−&lt;p&gt;I wish SmartyPants used named entities like
287−&lt;code&gt;&amp;amp;mdash;&lt;/code&gt; instead of decimal-encoded
288−entites like &lt;code&gt;&amp;amp;#8212;&lt;/code&gt;.&lt;/p&gt;
289−</code></pre>
290−
291−<p>To specify an entire block of pre-formatted code, indent every line of
292−the block by 4 spaces or 1 tab. Just like with code spans, <code>&amp;</code>, <code>&lt;</code>,
293−and <code>&gt;</code> characters will be escaped automatically.</p>
294−
295−<p>Markdown:</p>
296−
297−<pre><code>If you want your page to validate under XHTML 1.0 Strict,
298−you've got to put paragraph tags in your blockquotes:
299−
300− &lt;blockquote&gt;
301− &lt;p&gt;For example.&lt;/p&gt;
302− &lt;/blockquote&gt;
303−</code></pre>
304−
305−<p>Output:</p>
306−
307−<pre><code>&lt;p&gt;If you want your page to validate under XHTML 1.0 Strict,
308−you've got to put paragraph tags in your blockquotes:&lt;/p&gt;
309−
310−&lt;pre&gt;&lt;code&gt;&amp;lt;blockquote&amp;gt;
311− &amp;lt;p&amp;gt;For example.&amp;lt;/p&amp;gt;
312−&amp;lt;/blockquote&amp;gt;
313−&lt;/code&gt;&lt;/pre&gt;
314−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Basics.textdeleted−306
@@ -1,306 +0,0 @@
1−Markdown: Basics
2−================
3−
4−<ul id="ProjectSubmenu">
5− <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6− <li><a class="selected" title="Markdown Basics">Basics</a></li>
7− <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li>
8− <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9− <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
10−</ul>
11−
12−
13−Getting the Gist of Markdown's Formatting Syntax
14−------------------------------------------------
15−
16−This page offers a brief overview of what it's like to use Markdown.
17−The [syntax page] [s] provides complete, detailed documentation for
18−every feature, but Markdown should be very easy to pick up simply by
19−looking at a few examples of it in action. The examples on this page
20−are written in a before/after style, showing example syntax and the
21−HTML output produced by Markdown.
22−
23−It's also helpful to simply try Markdown out; the [Dingus] [d] is a
24−web application that allows you type your own Markdown-formatted text
25−and translate it to XHTML.
26−
27−**Note:** This document is itself written using Markdown; you
28−can [see the source for it by adding '.text' to the URL] [src].
29−
30− [s]: /projects/markdown/syntax "Markdown Syntax"
31− [d]: /projects/markdown/dingus "Markdown Dingus"
32− [src]: /projects/markdown/basics.text
33−
34−
35−## Paragraphs, Headers, Blockquotes ##
36−
37−A paragraph is simply one or more consecutive lines of text, separated
38−by one or more blank lines. (A blank line is any line that looks like a
39−blank line -- a line containing nothing spaces or tabs is considered
40−blank.) Normal paragraphs should not be intended with spaces or tabs.
41−
42−Markdown offers two styles of headers: *Setext* and *atx*.
43−Setext-style headers for `<h1>` and `<h2>` are created by
44−"underlining" with equal signs (`=`) and hyphens (`-`), respectively.
45−To create an atx-style header, you put 1-6 hash marks (`#`) at the
46−beginning of the line -- the number of hashes equals the resulting
47−HTML header level.
48−
49−Blockquotes are indicated using email-style '`>`' angle brackets.
50−
51−Markdown:
52−
53− A First Level Header
54− ====================
55−
56− A Second Level Header
57− ---------------------
58−
59− Now is the time for all good men to come to
60− the aid of their country. This is just a
61− regular paragraph.
62−
63− The quick brown fox jumped over the lazy
64− dog's back.
65−
66− ### Header 3
67−
68− > This is a blockquote.
69− >
70− > This is the second paragraph in the blockquote.
71− >
72− > ## This is an H2 in a blockquote
73−
74−
75−Output:
76−
77− <h1>A First Level Header</h1>
78−
79− <h2>A Second Level Header</h2>
80−
81− <p>Now is the time for all good men to come to
82− the aid of their country. This is just a
83− regular paragraph.</p>
84−
85− <p>The quick brown fox jumped over the lazy
86− dog's back.</p>
87−
88− <h3>Header 3</h3>
89−
90− <blockquote>
91− <p>This is a blockquote.</p>
92−
93− <p>This is the second paragraph in the blockquote.</p>
94−
95− <h2>This is an H2 in a blockquote</h2>
96− </blockquote>
97−
98−
99−
100−### Phrase Emphasis ###
101−
102−Markdown uses asterisks and underscores to indicate spans of emphasis.
103−
104−Markdown:
105−
106− Some of these words *are emphasized*.
107− Some of these words _are emphasized also_.
108−
109− Use two asterisks for **strong emphasis**.
110− Or, if you prefer, __use two underscores instead__.
111−
112−Output:
113−
114− <p>Some of these words <em>are emphasized</em>.
115− Some of these words <em>are emphasized also</em>.</p>
116−
117− <p>Use two asterisks for <strong>strong emphasis</strong>.
118− Or, if you prefer, <strong>use two underscores instead</strong>.</p>
119−
120−
121−
122−## Lists ##
123−
124−Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
125−`+`, and `-`) as list markers. These three markers are
126−interchangable; this:
127−
128− * Candy.
129− * Gum.
130− * Booze.
131−
132−this:
133−
134− + Candy.
135− + Gum.
136− + Booze.
137−
138−and this:
139−
140− - Candy.
141− - Gum.
142− - Booze.
143−
144−all produce the same output:
145−
146− <ul>
147− <li>Candy.</li>
148− <li>Gum.</li>
149− <li>Booze.</li>
150− </ul>
151−
152−Ordered (numbered) lists use regular numbers, followed by periods, as
153−list markers:
154−
155− 1. Red
156− 2. Green
157− 3. Blue
158−
159−Output:
160−
161− <ol>
162− <li>Red</li>
163− <li>Green</li>
164− <li>Blue</li>
165− </ol>
166−
167−If you put blank lines between items, you'll get `<p>` tags for the
168−list item text. You can create multi-paragraph list items by indenting
169−the paragraphs by 4 spaces or 1 tab:
170−
171− * A list item.
172−
173− With multiple paragraphs.
174−
175− * Another item in the list.
176−
177−Output:
178−
179− <ul>
180− <li><p>A list item.</p>
181− <p>With multiple paragraphs.</p></li>
182− <li><p>Another item in the list.</p></li>
183− </ul>
184−
185−
186−
187−### Links ###
188−
189−Markdown supports two styles for creating links: *inline* and
190−*reference*. With both styles, you use square brackets to delimit the
191−text you want to turn into a link.
192−
193−Inline-style links use parentheses immediately after the link text.
194−For example:
195−
196− This is an [example link](http://example.com/).
197−
198−Output:
199−
200− <p>This is an <a href="http://example.com/">
201− example link</a>.</p>
202−
203−Optionally, you may include a title attribute in the parentheses:
204−
205− This is an [example link](http://example.com/ "With a Title").
206−
207−Output:
208−
209− <p>This is an <a href="http://example.com/" title="With a Title">
210− example link</a>.</p>
211−
212−Reference-style links allow you to refer to your links by names, which
213−you define elsewhere in your document:
214−
215− I get 10 times more traffic from [Google][1] than from
216− [Yahoo][2] or [MSN][3].
217−
218− [1]: http://google.com/ "Google"
219− [2]: http://search.yahoo.com/ "Yahoo Search"
220− [3]: http://search.msn.com/ "MSN Search"
221−
222−Output:
223−
224− <p>I get 10 times more traffic from <a href="http://google.com/"
225− title="Google">Google</a> than from <a href="http://search.yahoo.com/"
226− title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/"
227− title="MSN Search">MSN</a>.</p>
228−
229−The title attribute is optional. Link names may contain letters,
230−numbers and spaces, but are *not* case sensitive:
231−
232− I start my morning with a cup of coffee and
233− [The New York Times][NY Times].
234−
235− [ny times]: http://www.nytimes.com/
236−
237−Output:
238−
239− <p>I start my morning with a cup of coffee and
240− <a href="http://www.nytimes.com/">The New York Times</a>.</p>
241−
242−
243−### Images ###
244−
245−Image syntax is very much like link syntax.
246−
247−Inline (titles are optional):
248−
249− ![alt text](/path/to/img.jpg "Title")
250−
251−Reference-style:
252−
253− ![alt text][id]
254−
255− [id]: /path/to/img.jpg "Title"
256−
257−Both of the above examples produce the same output:
258−
259− <img src="/path/to/img.jpg" alt="alt text" title="Title" />
260−
261−
262−
263−### Code ###
264−
265−In a regular paragraph, you can create code span by wrapping text in
266−backtick quotes. Any ampersands (`&`) and angle brackets (`<` or
267−`>`) will automatically be translated into HTML entities. This makes
268−it easy to use Markdown to write about HTML example code:
269−
270− I strongly recommend against using any `<blink>` tags.
271−
272− I wish SmartyPants used named entities like `&mdash;`
273− instead of decimal-encoded entites like `&#8212;`.
274−
275−Output:
276−
277− <p>I strongly recommend against using any
278− <code>&lt;blink&gt;</code> tags.</p>
279−
280− <p>I wish SmartyPants used named entities like
281− <code>&amp;mdash;</code> instead of decimal-encoded
282− entites like <code>&amp;#8212;</code>.</p>
283−
284−
285−To specify an entire block of pre-formatted code, indent every line of
286−the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`,
287−and `>` characters will be escaped automatically.
288−
289−Markdown:
290−
291− If you want your page to validate under XHTML 1.0 Strict,
292− you've got to put paragraph tags in your blockquotes:
293−
294− <blockquote>
295− <p>For example.</p>
296− </blockquote>
297−
298−Output:
299−
300− <p>If you want your page to validate under XHTML 1.0 Strict,
301− you've got to put paragraph tags in your blockquotes:</p>
302−
303− <pre><code>&lt;blockquote&gt;
304− &lt;p&gt;For example.&lt;/p&gt;
305− &lt;/blockquote&gt;
306− </code></pre>
tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.htmldeleted−942
@@ -1,942 +0,0 @@
1−<h1>Markdown: Syntax</h1>
2−
3−<ul id="ProjectSubmenu">
4− <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
5− <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
6− <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
7− <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
8− <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
9−</ul>
10−
11−<ul>
12−<li><a href="#overview">Overview</a>
13−<ul>
14−<li><a href="#philosophy">Philosophy</a></li>
15−<li><a href="#html">Inline HTML</a></li>
16−<li><a href="#autoescape">Automatic Escaping for Special Characters</a></li>
17−</ul></li>
18−<li><a href="#block">Block Elements</a>
19−<ul>
20−<li><a href="#p">Paragraphs and Line Breaks</a></li>
21−<li><a href="#header">Headers</a></li>
22−<li><a href="#blockquote">Blockquotes</a></li>
23−<li><a href="#list">Lists</a></li>
24−<li><a href="#precode">Code Blocks</a></li>
25−<li><a href="#hr">Horizontal Rules</a></li>
26−</ul></li>
27−<li><a href="#span">Span Elements</a>
28−<ul>
29−<li><a href="#link">Links</a></li>
30−<li><a href="#em">Emphasis</a></li>
31−<li><a href="#code">Code</a></li>
32−<li><a href="#img">Images</a></li>
33−</ul></li>
34−<li><a href="#misc">Miscellaneous</a>
35−<ul>
36−<li><a href="#backslash">Backslash Escapes</a></li>
37−<li><a href="#autolink">Automatic Links</a></li>
38−</ul></li>
39−</ul>
40−
41−<p><strong>Note:</strong> This document is itself written using Markdown; you
42−can <a href="/projects/markdown/syntax.text">see the source for it by adding '.text' to the URL</a>.</p>
43−
44−<hr />
45−
46−<h2 id="overview">Overview</h2>
47−
48−<h3 id="philosophy">Philosophy</h3>
49−
50−<p>Markdown is intended to be as easy-to-read and easy-to-write as is feasible.</p>
51−
52−<p>Readability, however, is emphasized above all else. A Markdown-formatted
53−document should be publishable as-is, as plain text, without looking
54−like it's been marked up with tags or formatting instructions. While
55−Markdown's syntax has been influenced by several existing text-to-HTML
56−filters -- including <a href="http://docutils.sourceforge.net/mirror/setext.html">Setext</a>, <a href="http://www.aaronsw.com/2002/atx/">atx</a>, <a href="http://textism.com/tools/textile/">Textile</a>, <a href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>,
57−<a href="http://www.triptico.com/software/grutatxt.html">Grutatext</a>, and <a href="http://ettext.taint.org/doc/">EtText</a> -- the single biggest source of
58−inspiration for Markdown's syntax is the format of plain text email.</p>
59−
60−<p>To this end, Markdown's syntax is comprised entirely of punctuation
61−characters, which punctuation characters have been carefully chosen so
62−as to look like what they mean. E.g., asterisks around a word actually
63−look like *emphasis*. Markdown lists look like, well, lists. Even
64−blockquotes look like quoted passages of text, assuming you've ever
65−used email.</p>
66−
67−<h3 id="html">Inline HTML</h3>
68−
69−<p>Markdown's syntax is intended for one purpose: to be used as a
70−format for <em>writing</em> for the web.</p>
71−
72−<p>Markdown is not a replacement for HTML, or even close to it. Its
73−syntax is very small, corresponding only to a very small subset of
74−HTML tags. The idea is <em>not</em> to create a syntax that makes it easier
75−to insert HTML tags. In my opinion, HTML tags are already easy to
76−insert. The idea for Markdown is to make it easy to read, write, and
77−edit prose. HTML is a <em>publishing</em> format; Markdown is a <em>writing</em>
78−format. Thus, Markdown's formatting syntax only addresses issues that
79−can be conveyed in plain text.</p>
80−
81−<p>For any markup that is not covered by Markdown's syntax, you simply
82−use HTML itself. There's no need to preface it or delimit it to
83−indicate that you're switching from Markdown to HTML; you just use
84−the tags.</p>
85−
86−<p>The only restrictions are that block-level HTML elements -- e.g. <code>&lt;div&gt;</code>,
87−<code>&lt;table&gt;</code>, <code>&lt;pre&gt;</code>, <code>&lt;p&gt;</code>, etc. -- must be separated from surrounding
88−content by blank lines, and the start and end tags of the block should
89−not be indented with tabs or spaces. Markdown is smart enough not
90−to add extra (unwanted) <code>&lt;p&gt;</code> tags around HTML block-level tags.</p>
91−
92−<p>For example, to add an HTML table to a Markdown article:</p>
93−
94−<pre><code>This is a regular paragraph.
95−
96−&lt;table&gt;
97− &lt;tr&gt;
98− &lt;td&gt;Foo&lt;/td&gt;
99− &lt;/tr&gt;
100−&lt;/table&gt;
101−
102−This is another regular paragraph.
103−</code></pre>
104−
105−<p>Note that Markdown formatting syntax is not processed within block-level
106−HTML tags. E.g., you can't use Markdown-style <code>*emphasis*</code> inside an
107−HTML block.</p>
108−
109−<p>Span-level HTML tags -- e.g. <code>&lt;span&gt;</code>, <code>&lt;cite&gt;</code>, or <code>&lt;del&gt;</code> -- can be
110−used anywhere in a Markdown paragraph, list item, or header. If you
111−want, you can even use HTML tags instead of Markdown formatting; e.g. if
112−you'd prefer to use HTML <code>&lt;a&gt;</code> or <code>&lt;img&gt;</code> tags instead of Markdown's
113−link or image syntax, go right ahead.</p>
114−
115−<p>Unlike block-level HTML tags, Markdown syntax <em>is</em> processed within
116−span-level tags.</p>
117−
118−<h3 id="autoescape">Automatic Escaping for Special Characters</h3>
119−
120−<p>In HTML, there are two characters that demand special treatment: <code>&lt;</code>
121−and <code>&amp;</code>. Left angle brackets are used to start tags; ampersands are
122−used to denote HTML entities. If you want to use them as literal
123−characters, you must escape them as entities, e.g. <code>&amp;lt;</code>, and
124−<code>&amp;amp;</code>.</p>
125−
126−<p>Ampersands in particular are bedeviling for web writers. If you want to
127−write about 'AT&amp;T', you need to write '<code>AT&amp;amp;T</code>'. You even need to
128−escape ampersands within URLs. Thus, if you want to link to:</p>
129−
130−<pre><code>http://images.google.com/images?num=30&amp;q=larry+bird
131−</code></pre>
132−
133−<p>you need to encode the URL as:</p>
134−
135−<pre><code>http://images.google.com/images?num=30&amp;amp;q=larry+bird
136−</code></pre>
137−
138−<p>in your anchor tag <code>href</code> attribute. Needless to say, this is easy to
139−forget, and is probably the single most common source of HTML validation
140−errors in otherwise well-marked-up web sites.</p>
141−
142−<p>Markdown allows you to use these characters naturally, taking care of
143−all the necessary escaping for you. If you use an ampersand as part of
144−an HTML entity, it remains unchanged; otherwise it will be translated
145−into <code>&amp;amp;</code>.</p>
146−
147−<p>So, if you want to include a copyright symbol in your article, you can write:</p>
148−
149−<pre><code>&amp;copy;
150−</code></pre>
151−
152−<p>and Markdown will leave it alone. But if you write:</p>
153−
154−<pre><code>AT&amp;T
155−</code></pre>
156−
157−<p>Markdown will translate it to:</p>
158−
159−<pre><code>AT&amp;amp;T
160−</code></pre>
161−
162−<p>Similarly, because Markdown supports <a href="#html">inline HTML</a>, if you use
163−angle brackets as delimiters for HTML tags, Markdown will treat them as
164−such. But if you write:</p>
165−
166−<pre><code>4 &lt; 5
167−</code></pre>
168−
169−<p>Markdown will translate it to:</p>
170−
171−<pre><code>4 &amp;lt; 5
172−</code></pre>
173−
174−<p>However, inside Markdown code spans and blocks, angle brackets and
175−ampersands are <em>always</em> encoded automatically. This makes it easy to use
176−Markdown to write about HTML code. (As opposed to raw HTML, which is a
177−terrible format for writing about HTML syntax, because every single <code>&lt;</code>
178−and <code>&amp;</code> in your example code needs to be escaped.)</p>
179−
180−<hr />
181−
182−<h2 id="block">Block Elements</h2>
183−
184−<h3 id="p">Paragraphs and Line Breaks</h3>
185−
186−<p>A paragraph is simply one or more consecutive lines of text, separated
187−by one or more blank lines. (A blank line is any line that looks like a
188−blank line -- a line containing nothing but spaces or tabs is considered
189−blank.) Normal paragraphs should not be intended with spaces or tabs.</p>
190−
191−<p>The implication of the "one or more consecutive lines of text" rule is
192−that Markdown supports "hard-wrapped" text paragraphs. This differs
193−significantly from most other text-to-HTML formatters (including Movable
194−Type's "Convert Line Breaks" option) which translate every line break
195−character in a paragraph into a <code>&lt;br /&gt;</code> tag.</p>
196−
197−<p>When you <em>do</em> want to insert a <code>&lt;br /&gt;</code> break tag using Markdown, you
198−end a line with two or more spaces, then type return.</p>
199−
200−<p>Yes, this takes a tad more effort to create a <code>&lt;br /&gt;</code>, but a simplistic
201−"every line break is a <code>&lt;br /&gt;</code>" rule wouldn't work for Markdown.
202−Markdown's email-style <a href="#blockquote">blockquoting</a> and multi-paragraph <a href="#list">list items</a>
203−work best -- and look better -- when you format them with hard breaks.</p>
204−
205−<h3 id="header">Headers</h3>
206−
207−<p>Markdown supports two styles of headers, <a href="http://docutils.sourceforge.net/mirror/setext.html">Setext</a> and <a href="http://www.aaronsw.com/2002/atx/">atx</a>.</p>
208−
209−<p>Setext-style headers are "underlined" using equal signs (for first-level
210−headers) and dashes (for second-level headers). For example:</p>
211−
212−<pre><code>This is an H1
213−=============
214−
215−This is an H2
216−-------------
217−</code></pre>
218−
219−<p>Any number of underlining <code>=</code>'s or <code>-</code>'s will work.</p>
220−
221−<p>Atx-style headers use 1-6 hash characters at the start of the line,
222−corresponding to header levels 1-6. For example:</p>
223−
224−<pre><code># This is an H1
225−
226−## This is an H2
227−
228−###### This is an H6
229−</code></pre>
230−
231−<p>Optionally, you may "close" atx-style headers. This is purely
232−cosmetic -- you can use this if you think it looks better. The
233−closing hashes don't even need to match the number of hashes
234−used to open the header. (The number of opening hashes
235−determines the header level.) :</p>
236−
237−<pre><code># This is an H1 #
238−
239−## This is an H2 ##
240−
241−### This is an H3 ######
242−</code></pre>
243−
244−<h3 id="blockquote">Blockquotes</h3>
245−
246−<p>Markdown uses email-style <code>&gt;</code> characters for blockquoting. If you're
247−familiar with quoting passages of text in an email message, then you
248−know how to create a blockquote in Markdown. It looks best if you hard
249−wrap the text and put a <code>&gt;</code> before every line:</p>
250−
251−<pre><code>&gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
252−&gt; consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
253−&gt; Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
254−&gt;
255−&gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
256−&gt; id sem consectetuer libero luctus adipiscing.
257−</code></pre>
258−
259−<p>Markdown allows you to be lazy and only put the <code>&gt;</code> before the first
260−line of a hard-wrapped paragraph:</p>
261−
262−<pre><code>&gt; This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
263−consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
264−Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
265−
266−&gt; Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
267−id sem consectetuer libero luctus adipiscing.
268−</code></pre>
269−
270−<p>Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by
271−adding additional levels of <code>&gt;</code>:</p>
272−
273−<pre><code>&gt; This is the first level of quoting.
274−&gt;
275−&gt; &gt; This is nested blockquote.
276−&gt;
277−&gt; Back to the first level.
278−</code></pre>
279−
280−<p>Blockquotes can contain other Markdown elements, including headers, lists,
281−and code blocks:</p>
282−
283−<pre><code>&gt; ## This is a header.
284−&gt;
285−&gt; 1. This is the first list item.
286−&gt; 2. This is the second list item.
287−&gt;
288−&gt; Here's some example code:
289−&gt;
290−&gt; return shell_exec("echo $input | $markdown_script");
291−</code></pre>
292−
293−<p>Any decent text editor should make email-style quoting easy. For
294−example, with BBEdit, you can make a selection and choose Increase
295−Quote Level from the Text menu.</p>
296−
297−<h3 id="list">Lists</h3>
298−
299−<p>Markdown supports ordered (numbered) and unordered (bulleted) lists.</p>
300−
301−<p>Unordered lists use asterisks, pluses, and hyphens -- interchangably
302−-- as list markers:</p>
303−
304−<pre><code>* Red
305−* Green
306−* Blue
307−</code></pre>
308−
309−<p>is equivalent to:</p>
310−
311−<pre><code>+ Red
312−+ Green
313−+ Blue
314−</code></pre>
315−
316−<p>and:</p>
317−
318−<pre><code>- Red
319−- Green
320−- Blue
321−</code></pre>
322−
323−<p>Ordered lists use numbers followed by periods:</p>
324−
325−<pre><code>1. Bird
326−2. McHale
327−3. Parish
328−</code></pre>
329−
330−<p>It's important to note that the actual numbers you use to mark the
331−list have no effect on the HTML output Markdown produces. The HTML
332−Markdown produces from the above list is:</p>
333−
334−<pre><code>&lt;ol&gt;
335−&lt;li&gt;Bird&lt;/li&gt;
336−&lt;li&gt;McHale&lt;/li&gt;
337−&lt;li&gt;Parish&lt;/li&gt;
338−&lt;/ol&gt;
339−</code></pre>
340−
341−<p>If you instead wrote the list in Markdown like this:</p>
342−
343−<pre><code>1. Bird
344−1. McHale
345−1. Parish
346−</code></pre>
347−
348−<p>or even:</p>
349−
350−<pre><code>3. Bird
351−1. McHale
352−8. Parish
353−</code></pre>
354−
355−<p>you'd get the exact same HTML output. The point is, if you want to,
356−you can use ordinal numbers in your ordered Markdown lists, so that
357−the numbers in your source match the numbers in your published HTML.
358−But if you want to be lazy, you don't have to.</p>
359−
360−<p>If you do use lazy list numbering, however, you should still start the
361−list with the number 1. At some point in the future, Markdown may support
362−starting ordered lists at an arbitrary number.</p>
363−
364−<p>List markers typically start at the left margin, but may be indented by
365−up to three spaces. List markers must be followed by one or more spaces
366−or a tab.</p>
367−
368−<p>To make lists look nice, you can wrap items with hanging indents:</p>
369−
370−<pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
371− Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
372− viverra nec, fringilla in, laoreet vitae, risus.
373−* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
374− Suspendisse id sem consectetuer libero luctus adipiscing.
375−</code></pre>
376−
377−<p>But if you want to be lazy, you don't have to:</p>
378−
379−<pre><code>* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
380−Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
381−viverra nec, fringilla in, laoreet vitae, risus.
382−* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
383−Suspendisse id sem consectetuer libero luctus adipiscing.
384−</code></pre>
385−
386−<p>If list items are separated by blank lines, Markdown will wrap the
387−items in <code>&lt;p&gt;</code> tags in the HTML output. For example, this input:</p>
388−
389−<pre><code>* Bird
390−* Magic
391−</code></pre>
392−
393−<p>will turn into:</p>
394−
395−<pre><code>&lt;ul&gt;
396−&lt;li&gt;Bird&lt;/li&gt;
397−&lt;li&gt;Magic&lt;/li&gt;
398−&lt;/ul&gt;
399−</code></pre>
400−
401−<p>But this:</p>
402−
403−<pre><code>* Bird
404−
405−* Magic
406−</code></pre>
407−
408−<p>will turn into:</p>
409−
410−<pre><code>&lt;ul&gt;
411−&lt;li&gt;&lt;p&gt;Bird&lt;/p&gt;&lt;/li&gt;
412−&lt;li&gt;&lt;p&gt;Magic&lt;/p&gt;&lt;/li&gt;
413−&lt;/ul&gt;
414−</code></pre>
415−
416−<p>List items may consist of multiple paragraphs. Each subsequent
417−paragraph in a list item must be intended by either 4 spaces
418−or one tab:</p>
419−
420−<pre><code>1. This is a list item with two paragraphs. Lorem ipsum dolor
421− sit amet, consectetuer adipiscing elit. Aliquam hendrerit
422− mi posuere lectus.
423−
424− Vestibulum enim wisi, viverra nec, fringilla in, laoreet
425− vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
426− sit amet velit.
427−
428−2. Suspendisse id sem consectetuer libero luctus adipiscing.
429−</code></pre>
430−
431−<p>It looks nice if you indent every line of the subsequent
432−paragraphs, but here again, Markdown will allow you to be
433−lazy:</p>
434−
435−<pre><code>* This is a list item with two paragraphs.
436−
437− This is the second paragraph in the list item. You're
438−only required to indent the first line. Lorem ipsum dolor
439−sit amet, consectetuer adipiscing elit.
440−
441−* Another item in the same list.
442−</code></pre>
443−
444−<p>To put a blockquote within a list item, the blockquote's <code>&gt;</code>
445−delimiters need to be indented:</p>
446−
447−<pre><code>* A list item with a blockquote:
448−
449− &gt; This is a blockquote
450− &gt; inside a list item.
451−</code></pre>
452−
453−<p>To put a code block within a list item, the code block needs
454−to be indented <em>twice</em> -- 8 spaces or two tabs:</p>
455−
456−<pre><code>* A list item with a code block:
457−
458− &lt;code goes here&gt;
459−</code></pre>
460−
461−<p>It's worth noting that it's possible to trigger an ordered list by
462−accident, by writing something like this:</p>
463−
464−<pre><code>1986. What a great season.
465−</code></pre>
466−
467−<p>In other words, a <em>number-period-space</em> sequence at the beginning of a
468−line. To avoid this, you can backslash-escape the period:</p>
469−
470−<pre><code>1986\. What a great season.
471−</code></pre>
472−
473−<h3 id="precode">Code Blocks</h3>
474−
475−<p>Pre-formatted code blocks are used for writing about programming or
476−markup source code. Rather than forming normal paragraphs, the lines
477−of a code block are interpreted literally. Markdown wraps a code block
478−in both <code>&lt;pre&gt;</code> and <code>&lt;code&gt;</code> tags.</p>
479−
480−<p>To produce a code block in Markdown, simply indent every line of the
481−block by at least 4 spaces or 1 tab. For example, given this input:</p>
482−
483−<pre><code>This is a normal paragraph:
484−
485− This is a code block.
486−</code></pre>
487−
488−<p>Markdown will generate:</p>
489−
490−<pre><code>&lt;p&gt;This is a normal paragraph:&lt;/p&gt;
491−
492−&lt;pre&gt;&lt;code&gt;This is a code block.
493−&lt;/code&gt;&lt;/pre&gt;
494−</code></pre>
495−
496−<p>One level of indentation -- 4 spaces or 1 tab -- is removed from each
497−line of the code block. For example, this:</p>
498−
499−<pre><code>Here is an example of AppleScript:
500−
501− tell application "Foo"
502− beep
503− end tell
504−</code></pre>
505−
506−<p>will turn into:</p>
507−
508−<pre><code>&lt;p&gt;Here is an example of AppleScript:&lt;/p&gt;
509−
510−&lt;pre&gt;&lt;code&gt;tell application "Foo"
511− beep
512−end tell
513−&lt;/code&gt;&lt;/pre&gt;
514−</code></pre>
515−
516−<p>A code block continues until it reaches a line that is not indented
517−(or the end of the article).</p>
518−
519−<p>Within a code block, ampersands (<code>&amp;</code>) and angle brackets (<code>&lt;</code> and <code>&gt;</code>)
520−are automatically converted into HTML entities. This makes it very
521−easy to include example HTML source code using Markdown -- just paste
522−it and indent it, and Markdown will handle the hassle of encoding the
523−ampersands and angle brackets. For example, this:</p>
524−
525−<pre><code> &lt;div class="footer"&gt;
526− &amp;copy; 2004 Foo Corporation
527− &lt;/div&gt;
528−</code></pre>
529−
530−<p>will turn into:</p>
531−
532−<pre><code>&lt;pre&gt;&lt;code&gt;&amp;lt;div class="footer"&amp;gt;
533− &amp;amp;copy; 2004 Foo Corporation
534−&amp;lt;/div&amp;gt;
535−&lt;/code&gt;&lt;/pre&gt;
536−</code></pre>
537−
538−<p>Regular Markdown syntax is not processed within code blocks. E.g.,
539−asterisks are just literal asterisks within a code block. This means
540−it's also easy to use Markdown to write about Markdown's own syntax.</p>
541−
542−<h3 id="hr">Horizontal Rules</h3>
543−
544−<p>You can produce a horizontal rule tag (<code>&lt;hr /&gt;</code>) by placing three or
545−more hyphens, asterisks, or underscores on a line by themselves. If you
546−wish, you may use spaces between the hyphens or asterisks. Each of the
547−following lines will produce a horizontal rule:</p>
548−
549−<pre><code>* * *
550−
551−***
552−
553−*****
554−
555−- - -
556−
557−---------------------------------------
558−
559−_ _ _
560−</code></pre>
561−
562−<hr />
563−
564−<h2 id="span">Span Elements</h2>
565−
566−<h3 id="link">Links</h3>
567−
568−<p>Markdown supports two style of links: <em>inline</em> and <em>reference</em>.</p>
569−
570−<p>In both styles, the link text is delimited by [square brackets].</p>
571−
572−<p>To create an inline link, use a set of regular parentheses immediately
573−after the link text's closing square bracket. Inside the parentheses,
574−put the URL where you want the link to point, along with an <em>optional</em>
575−title for the link, surrounded in quotes. For example:</p>
576−
577−<pre><code>This is [an example](http://example.com/ "Title") inline link.
578−
579−[This link](http://example.net/) has no title attribute.
580−</code></pre>
581−
582−<p>Will produce:</p>
583−
584−<pre><code>&lt;p&gt;This is &lt;a href="http://example.com/" title="Title"&gt;
585−an example&lt;/a&gt; inline link.&lt;/p&gt;
586−
587−&lt;p&gt;&lt;a href="http://example.net/"&gt;This link&lt;/a&gt; has no
588−title attribute.&lt;/p&gt;
589−</code></pre>
590−
591−<p>If you're referring to a local resource on the same server, you can
592−use relative paths:</p>
593−
594−<pre><code>See my [About](/about/) page for details.
595−</code></pre>
596−
597−<p>Reference-style links use a second set of square brackets, inside
598−which you place a label of your choosing to identify the link:</p>
599−
600−<pre><code>This is [an example][id] reference-style link.
601−</code></pre>
602−
603−<p>You can optionally use a space to separate the sets of brackets:</p>
604−
605−<pre><code>This is [an example] [id] reference-style link.
606−</code></pre>
607−
608−<p>Then, anywhere in the document, you define your link label like this,
609−on a line by itself:</p>
610−
611−<pre><code>[id]: http://example.com/ "Optional Title Here"
612−</code></pre>
613−
614−<p>That is:</p>
615−
616−<ul>
617−<li>Square brackets containing the link identifier (optionally
618−indented from the left margin using up to three spaces);</li>
619−<li>followed by a colon;</li>
620−<li>followed by one or more spaces (or tabs);</li>
621−<li>followed by the URL for the link;</li>
622−<li>optionally followed by a title attribute for the link, enclosed
623−in double or single quotes.</li>
624−</ul>
625−
626−<p>The link URL may, optionally, be surrounded by angle brackets:</p>
627−
628−<pre><code>[id]: &lt;http://example.com/&gt; "Optional Title Here"
629−</code></pre>
630−
631−<p>You can put the title attribute on the next line and use extra spaces
632−or tabs for padding, which tends to look better with longer URLs:</p>
633−
634−<pre><code>[id]: http://example.com/longish/path/to/resource/here
635− "Optional Title Here"
636−</code></pre>
637−
638−<p>Link definitions are only used for creating links during Markdown
639−processing, and are stripped from your document in the HTML output.</p>
640−
641−<p>Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are <em>not</em> case sensitive. E.g. these two links:</p>
642−
643−<pre><code>[link text][a]
644−[link text][A]
645−</code></pre>
646−
647−<p>are equivalent.</p>
648−
649−<p>The <em>implicit link name</em> shortcut allows you to omit the name of the
650−link, in which case the link text itself is used as the name.
651−Just use an empty set of square brackets -- e.g., to link the word
652−"Google" to the google.com web site, you could simply write:</p>
653−
654−<pre><code>[Google][]
655−</code></pre>
656−
657−<p>And then define the link:</p>
658−
659−<pre><code>[Google]: http://google.com/
660−</code></pre>
661−
662−<p>Because link names may contain spaces, this shortcut even works for
663−multiple words in the link text:</p>
664−
665−<pre><code>Visit [Daring Fireball][] for more information.
666−</code></pre>
667−
668−<p>And then define the link:</p>
669−
670−<pre><code>[Daring Fireball]: http://daringfireball.net/
671−</code></pre>
672−
673−<p>Link definitions can be placed anywhere in your Markdown document. I
674−tend to put them immediately after each paragraph in which they're
675−used, but if you want, you can put them all at the end of your
676−document, sort of like footnotes.</p>
677−
678−<p>Here's an example of reference links in action:</p>
679−
680−<pre><code>I get 10 times more traffic from [Google] [1] than from
681−[Yahoo] [2] or [MSN] [3].
682−
683− [1]: http://google.com/ "Google"
684− [2]: http://search.yahoo.com/ "Yahoo Search"
685− [3]: http://search.msn.com/ "MSN Search"
686−</code></pre>
687−
688−<p>Using the implicit link name shortcut, you could instead write:</p>
689−
690−<pre><code>I get 10 times more traffic from [Google][] than from
691−[Yahoo][] or [MSN][].
692−
693− [google]: http://google.com/ "Google"
694− [yahoo]: http://search.yahoo.com/ "Yahoo Search"
695− [msn]: http://search.msn.com/ "MSN Search"
696−</code></pre>
697−
698−<p>Both of the above examples will produce the following HTML output:</p>
699−
700−<pre><code>&lt;p&gt;I get 10 times more traffic from &lt;a href="http://google.com/"
701−title="Google"&gt;Google&lt;/a&gt; than from
702−&lt;a href="http://search.yahoo.com/" title="Yahoo Search"&gt;Yahoo&lt;/a&gt;
703−or &lt;a href="http://search.msn.com/" title="MSN Search"&gt;MSN&lt;/a&gt;.&lt;/p&gt;
704−</code></pre>
705−
706−<p>For comparison, here is the same paragraph written using
707−Markdown's inline link style:</p>
708−
709−<pre><code>I get 10 times more traffic from [Google](http://google.com/ "Google")
710−than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
711−[MSN](http://search.msn.com/ "MSN Search").
712−</code></pre>
713−
714−<p>The point of reference-style links is not that they're easier to
715−write. The point is that with reference-style links, your document
716−source is vastly more readable. Compare the above examples: using
717−reference-style links, the paragraph itself is only 81 characters
718−long; with inline-style links, it's 176 characters; and as raw HTML,
719−it's 234 characters. In the raw HTML, there's more markup than there
720−is text.</p>
721−
722−<p>With Markdown's reference-style links, a source document much more
723−closely resembles the final output, as rendered in a browser. By
724−allowing you to move the markup-related metadata out of the paragraph,
725−you can add links without interrupting the narrative flow of your
726−prose.</p>
727−
728−<h3 id="em">Emphasis</h3>
729−
730−<p>Markdown treats asterisks (<code>*</code>) and underscores (<code>_</code>) as indicators of
731−emphasis. Text wrapped with one <code>*</code> or <code>_</code> will be wrapped with an
732−HTML <code>&lt;em&gt;</code> tag; double <code>*</code>'s or <code>_</code>'s will be wrapped with an HTML
733−<code>&lt;strong&gt;</code> tag. E.g., this input:</p>
734−
735−<pre><code>*single asterisks*
736−
737−_single underscores_
738−
739−**double asterisks**
740−
741−__double underscores__
742−</code></pre>
743−
744−<p>will produce:</p>
745−
746−<pre><code>&lt;em&gt;single asterisks&lt;/em&gt;
747−
748−&lt;em&gt;single underscores&lt;/em&gt;
749−
750−&lt;strong&gt;double asterisks&lt;/strong&gt;
751−
752−&lt;strong&gt;double underscores&lt;/strong&gt;
753−</code></pre>
754−
755−<p>You can use whichever style you prefer; the lone restriction is that
756−the same character must be used to open and close an emphasis span.</p>
757−
758−<p>Emphasis can be used in the middle of a word:</p>
759−
760−<pre><code>un*fucking*believable
761−</code></pre>
762−
763−<p>But if you surround an <code>*</code> or <code>_</code> with spaces, it'll be treated as a
764−literal asterisk or underscore.</p>
765−
766−<p>To produce a literal asterisk or underscore at a position where it
767−would otherwise be used as an emphasis delimiter, you can backslash
768−escape it:</p>
769−
770−<pre><code>\*this text is surrounded by literal asterisks\*
771−</code></pre>
772−
773−<h3 id="code">Code</h3>
774−
775−<p>To indicate a span of code, wrap it with backtick quotes (<code>`</code>).
776−Unlike a pre-formatted code block, a code span indicates code within a
777−normal paragraph. For example:</p>
778−
779−<pre><code>Use the `printf()` function.
780−</code></pre>
781−
782−<p>will produce:</p>
783−
784−<pre><code>&lt;p&gt;Use the &lt;code&gt;printf()&lt;/code&gt; function.&lt;/p&gt;
785−</code></pre>
786−
787−<p>To include a literal backtick character within a code span, you can use
788−multiple backticks as the opening and closing delimiters:</p>
789−
790−<pre><code>``There is a literal backtick (`) here.``
791−</code></pre>
792−
793−<p>which will produce this:</p>
794−
795−<pre><code>&lt;p&gt;&lt;code&gt;There is a literal backtick (`) here.&lt;/code&gt;&lt;/p&gt;
796−</code></pre>
797−
798−<p>The backtick delimiters surrounding a code span may include spaces --
799−one after the opening, one before the closing. This allows you to place
800−literal backtick characters at the beginning or end of a code span:</p>
801−
802−<pre><code>A single backtick in a code span: `` ` ``
803−
804−A backtick-delimited string in a code span: `` `foo` ``
805−</code></pre>
806−
807−<p>will produce:</p>
808−
809−<pre><code>&lt;p&gt;A single backtick in a code span: &lt;code&gt;`&lt;/code&gt;&lt;/p&gt;
810−
811−&lt;p&gt;A backtick-delimited string in a code span: &lt;code&gt;`foo`&lt;/code&gt;&lt;/p&gt;
812−</code></pre>
813−
814−<p>With a code span, ampersands and angle brackets are encoded as HTML
815−entities automatically, which makes it easy to include example HTML
816−tags. Markdown will turn this:</p>
817−
818−<pre><code>Please don't use any `&lt;blink&gt;` tags.
819−</code></pre>
820−
821−<p>into:</p>
822−
823−<pre><code>&lt;p&gt;Please don't use any &lt;code&gt;&amp;lt;blink&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
824−</code></pre>
825−
826−<p>You can write this:</p>
827−
828−<pre><code>`&amp;#8212;` is the decimal-encoded equivalent of `&amp;mdash;`.
829−</code></pre>
830−
831−<p>to produce:</p>
832−
833−<pre><code>&lt;p&gt;&lt;code&gt;&amp;amp;#8212;&lt;/code&gt; is the decimal-encoded
834−equivalent of &lt;code&gt;&amp;amp;mdash;&lt;/code&gt;.&lt;/p&gt;
835−</code></pre>
836−
837−<h3 id="img">Images</h3>
838−
839−<p>Admittedly, it's fairly difficult to devise a "natural" syntax for
840−placing images into a plain text document format.</p>
841−
842−<p>Markdown uses an image syntax that is intended to resemble the syntax
843−for links, allowing for two styles: <em>inline</em> and <em>reference</em>.</p>
844−
845−<p>Inline image syntax looks like this:</p>
846−
847−<pre><code>![Alt text](/path/to/img.jpg)
848−
849−![Alt text](/path/to/img.jpg "Optional title")
850−</code></pre>
851−
852−<p>That is:</p>
853−
854−<ul>
855−<li>An exclamation mark: <code>!</code>;</li>
856−<li>followed by a set of square brackets, containing the <code>alt</code>
857−attribute text for the image;</li>
858−<li>followed by a set of parentheses, containing the URL or path to
859−the image, and an optional <code>title</code> attribute enclosed in double
860−or single quotes.</li>
861−</ul>
862−
863−<p>Reference-style image syntax looks like this:</p>
864−
865−<pre><code>![Alt text][id]
866−</code></pre>
867−
868−<p>Where "id" is the name of a defined image reference. Image references
869−are defined using syntax identical to link references:</p>
870−
871−<pre><code>[id]: url/to/image "Optional title attribute"
872−</code></pre>
873−
874−<p>As of this writing, Markdown has no syntax for specifying the
875−dimensions of an image; if this is important to you, you can simply
876−use regular HTML <code>&lt;img&gt;</code> tags.</p>
877−
878−<hr />
879−
880−<h2 id="misc">Miscellaneous</h2>
881−
882−<h3 id="autolink">Automatic Links</h3>
883−
884−<p>Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:</p>
885−
886−<pre><code>&lt;http://example.com/&gt;
887−</code></pre>
888−
889−<p>Markdown will turn this into:</p>
890−
891−<pre><code>&lt;a href="http://example.com/"&gt;http://example.com/&lt;/a&gt;
892−</code></pre>
893−
894−<p>Automatic links for email addresses work similarly, except that
895−Markdown will also perform a bit of randomized decimal and hex
896−entity-encoding to help obscure your address from address-harvesting
897−spambots. For example, Markdown will turn this:</p>
898−
899−<pre><code>&lt;address@example.com&gt;
900−</code></pre>
901−
902−<p>into something like this:</p>
903−
904−<pre><code>&lt;a href="&amp;#x6D;&amp;#x61;i&amp;#x6C;&amp;#x74;&amp;#x6F;:&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;
905−&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;
906−&amp;#109;"&gt;&amp;#x61;&amp;#x64;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#115;&amp;#115;&amp;#64;&amp;#101;&amp;#120;&amp;#x61;
907−&amp;#109;&amp;#x70;&amp;#x6C;e&amp;#x2E;&amp;#99;&amp;#111;&amp;#109;&lt;/a&gt;
908−</code></pre>
909−
910−<p>which will render in a browser as a clickable link to "address@example.com".</p>
911−
912−<p>(This sort of entity-encoding trick will indeed fool many, if not
913−most, address-harvesting bots, but it definitely won't fool all of
914−them. It's better than nothing, but an address published in this way
915−will probably eventually start receiving spam.)</p>
916−
917−<h3 id="backslash">Backslash Escapes</h3>
918−
919−<p>Markdown allows you to use backslash escapes to generate literal
920−characters which would otherwise have special meaning in Markdown's
921−formatting syntax. For example, if you wanted to surround a word with
922−literal asterisks (instead of an HTML <code>&lt;em&gt;</code> tag), you can backslashes
923−before the asterisks, like this:</p>
924−
925−<pre><code>\*literal asterisks\*
926−</code></pre>
927−
928−<p>Markdown provides backslash escapes for the following characters:</p>
929−
930−<pre><code>\ backslash
931−` backtick
932−* asterisk
933−_ underscore
934−{} curly braces
935−[] square brackets
936−() parentheses
937−# hash mark
938−+ plus sign
939−- minus sign (hyphen)
940−. dot
941−! exclamation mark
942−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Markdown Documentation - Syntax.textdeleted−888
@@ -1,888 +0,0 @@
1−Markdown: Syntax
2−================
3−
4−<ul id="ProjectSubmenu">
5− <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6− <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7− <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8− <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9− <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
10−</ul>
11−
12−
13−* [Overview](#overview)
14− * [Philosophy](#philosophy)
15− * [Inline HTML](#html)
16− * [Automatic Escaping for Special Characters](#autoescape)
17−* [Block Elements](#block)
18− * [Paragraphs and Line Breaks](#p)
19− * [Headers](#header)
20− * [Blockquotes](#blockquote)
21− * [Lists](#list)
22− * [Code Blocks](#precode)
23− * [Horizontal Rules](#hr)
24−* [Span Elements](#span)
25− * [Links](#link)
26− * [Emphasis](#em)
27− * [Code](#code)
28− * [Images](#img)
29−* [Miscellaneous](#misc)
30− * [Backslash Escapes](#backslash)
31− * [Automatic Links](#autolink)
32−
33−
34−**Note:** This document is itself written using Markdown; you
35−can [see the source for it by adding '.text' to the URL][src].
36−
37− [src]: /projects/markdown/syntax.text
38−
39−* * *
40−
41−<h2 id="overview">Overview</h2>
42−
43−<h3 id="philosophy">Philosophy</h3>
44−
45−Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
46−
47−Readability, however, is emphasized above all else. A Markdown-formatted
48−document should be publishable as-is, as plain text, without looking
49−like it's been marked up with tags or formatting instructions. While
50−Markdown's syntax has been influenced by several existing text-to-HTML
51−filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
52−[Grutatext] [5], and [EtText] [6] -- the single biggest source of
53−inspiration for Markdown's syntax is the format of plain text email.
54−
55− [1]: http://docutils.sourceforge.net/mirror/setext.html
56− [2]: http://www.aaronsw.com/2002/atx/
57− [3]: http://textism.com/tools/textile/
58− [4]: http://docutils.sourceforge.net/rst.html
59− [5]: http://www.triptico.com/software/grutatxt.html
60− [6]: http://ettext.taint.org/doc/
61−
62−To this end, Markdown's syntax is comprised entirely of punctuation
63−characters, which punctuation characters have been carefully chosen so
64−as to look like what they mean. E.g., asterisks around a word actually
65−look like \*emphasis\*. Markdown lists look like, well, lists. Even
66−blockquotes look like quoted passages of text, assuming you've ever
67−used email.
68−
69−
70−
71−<h3 id="html">Inline HTML</h3>
72−
73−Markdown's syntax is intended for one purpose: to be used as a
74−format for *writing* for the web.
75−
76−Markdown is not a replacement for HTML, or even close to it. Its
77−syntax is very small, corresponding only to a very small subset of
78−HTML tags. The idea is *not* to create a syntax that makes it easier
79−to insert HTML tags. In my opinion, HTML tags are already easy to
80−insert. The idea for Markdown is to make it easy to read, write, and
81−edit prose. HTML is a *publishing* format; Markdown is a *writing*
82−format. Thus, Markdown's formatting syntax only addresses issues that
83−can be conveyed in plain text.
84−
85−For any markup that is not covered by Markdown's syntax, you simply
86−use HTML itself. There's no need to preface it or delimit it to
87−indicate that you're switching from Markdown to HTML; you just use
88−the tags.
89−
90−The only restrictions are that block-level HTML elements -- e.g. `<div>`,
91−`<table>`, `<pre>`, `<p>`, etc. -- must be separated from surrounding
92−content by blank lines, and the start and end tags of the block should
93−not be indented with tabs or spaces. Markdown is smart enough not
94−to add extra (unwanted) `<p>` tags around HTML block-level tags.
95−
96−For example, to add an HTML table to a Markdown article:
97−
98− This is a regular paragraph.
99−
100− <table>
101− <tr>
102− <td>Foo</td>
103− </tr>
104− </table>
105−
106− This is another regular paragraph.
107−
108−Note that Markdown formatting syntax is not processed within block-level
109−HTML tags. E.g., you can't use Markdown-style `*emphasis*` inside an
110−HTML block.
111−
112−Span-level HTML tags -- e.g. `<span>`, `<cite>`, or `<del>` -- can be
113−used anywhere in a Markdown paragraph, list item, or header. If you
114−want, you can even use HTML tags instead of Markdown formatting; e.g. if
115−you'd prefer to use HTML `<a>` or `<img>` tags instead of Markdown's
116−link or image syntax, go right ahead.
117−
118−Unlike block-level HTML tags, Markdown syntax *is* processed within
119−span-level tags.
120−
121−
122−<h3 id="autoescape">Automatic Escaping for Special Characters</h3>
123−
124−In HTML, there are two characters that demand special treatment: `<`
125−and `&`. Left angle brackets are used to start tags; ampersands are
126−used to denote HTML entities. If you want to use them as literal
127−characters, you must escape them as entities, e.g. `&lt;`, and
128−`&amp;`.
129−
130−Ampersands in particular are bedeviling for web writers. If you want to
131−write about 'AT&T', you need to write '`AT&amp;T`'. You even need to
132−escape ampersands within URLs. Thus, if you want to link to:
133−
134− http://images.google.com/images?num=30&q=larry+bird
135−
136−you need to encode the URL as:
137−
138− http://images.google.com/images?num=30&amp;q=larry+bird
139−
140−in your anchor tag `href` attribute. Needless to say, this is easy to
141−forget, and is probably the single most common source of HTML validation
142−errors in otherwise well-marked-up web sites.
143−
144−Markdown allows you to use these characters naturally, taking care of
145−all the necessary escaping for you. If you use an ampersand as part of
146−an HTML entity, it remains unchanged; otherwise it will be translated
147−into `&amp;`.
148−
149−So, if you want to include a copyright symbol in your article, you can write:
150−
151− &copy;
152−
153−and Markdown will leave it alone. But if you write:
154−
155− AT&T
156−
157−Markdown will translate it to:
158−
159− AT&amp;T
160−
161−Similarly, because Markdown supports [inline HTML](#html), if you use
162−angle brackets as delimiters for HTML tags, Markdown will treat them as
163−such. But if you write:
164−
165− 4 < 5
166−
167−Markdown will translate it to:
168−
169− 4 &lt; 5
170−
171−However, inside Markdown code spans and blocks, angle brackets and
172−ampersands are *always* encoded automatically. This makes it easy to use
173−Markdown to write about HTML code. (As opposed to raw HTML, which is a
174−terrible format for writing about HTML syntax, because every single `<`
175−and `&` in your example code needs to be escaped.)
176−
177−
178−* * *
179−
180−
181−<h2 id="block">Block Elements</h2>
182−
183−
184−<h3 id="p">Paragraphs and Line Breaks</h3>
185−
186−A paragraph is simply one or more consecutive lines of text, separated
187−by one or more blank lines. (A blank line is any line that looks like a
188−blank line -- a line containing nothing but spaces or tabs is considered
189−blank.) Normal paragraphs should not be intended with spaces or tabs.
190−
191−The implication of the "one or more consecutive lines of text" rule is
192−that Markdown supports "hard-wrapped" text paragraphs. This differs
193−significantly from most other text-to-HTML formatters (including Movable
194−Type's "Convert Line Breaks" option) which translate every line break
195−character in a paragraph into a `<br />` tag.
196−
197−When you *do* want to insert a `<br />` break tag using Markdown, you
198−end a line with two or more spaces, then type return.
199−
200−Yes, this takes a tad more effort to create a `<br />`, but a simplistic
201−"every line break is a `<br />`" rule wouldn't work for Markdown.
202−Markdown's email-style [blockquoting][bq] and multi-paragraph [list items][l]
203−work best -- and look better -- when you format them with hard breaks.
204−
205− [bq]: #blockquote
206− [l]: #list
207−
208−
209−
210−<h3 id="header">Headers</h3>
211−
212−Markdown supports two styles of headers, [Setext] [1] and [atx] [2].
213−
214−Setext-style headers are "underlined" using equal signs (for first-level
215−headers) and dashes (for second-level headers). For example:
216−
217− This is an H1
218− =============
219−
220− This is an H2
221− -------------
222−
223−Any number of underlining `=`'s or `-`'s will work.
224−
225−Atx-style headers use 1-6 hash characters at the start of the line,
226−corresponding to header levels 1-6. For example:
227−
228− # This is an H1
229−
230− ## This is an H2
231−
232− ###### This is an H6
233−
234−Optionally, you may "close" atx-style headers. This is purely
235−cosmetic -- you can use this if you think it looks better. The
236−closing hashes don't even need to match the number of hashes
237−used to open the header. (The number of opening hashes
238−determines the header level.) :
239−
240− # This is an H1 #
241−
242− ## This is an H2 ##
243−
244− ### This is an H3 ######
245−
246−
247−<h3 id="blockquote">Blockquotes</h3>
248−
249−Markdown uses email-style `>` characters for blockquoting. If you're
250−familiar with quoting passages of text in an email message, then you
251−know how to create a blockquote in Markdown. It looks best if you hard
252−wrap the text and put a `>` before every line:
253−
254− > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
255− > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
256− > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
257− >
258− > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
259− > id sem consectetuer libero luctus adipiscing.
260−
261−Markdown allows you to be lazy and only put the `>` before the first
262−line of a hard-wrapped paragraph:
263−
264− > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
265− consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
266− Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
267−
268− > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
269− id sem consectetuer libero luctus adipiscing.
270−
271−Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by
272−adding additional levels of `>`:
273−
274− > This is the first level of quoting.
275− >
276− > > This is nested blockquote.
277− >
278− > Back to the first level.
279−
280−Blockquotes can contain other Markdown elements, including headers, lists,
281−and code blocks:
282−
283− > ## This is a header.
284− >
285− > 1. This is the first list item.
286− > 2. This is the second list item.
287− >
288− > Here's some example code:
289− >
290− > return shell_exec("echo $input | $markdown_script");
291−
292−Any decent text editor should make email-style quoting easy. For
293−example, with BBEdit, you can make a selection and choose Increase
294−Quote Level from the Text menu.
295−
296−
297−<h3 id="list">Lists</h3>
298−
299−Markdown supports ordered (numbered) and unordered (bulleted) lists.
300−
301−Unordered lists use asterisks, pluses, and hyphens -- interchangably
302−-- as list markers:
303−
304− * Red
305− * Green
306− * Blue
307−
308−is equivalent to:
309−
310− + Red
311− + Green
312− + Blue
313−
314−and:
315−
316− - Red
317− - Green
318− - Blue
319−
320−Ordered lists use numbers followed by periods:
321−
322− 1. Bird
323− 2. McHale
324− 3. Parish
325−
326−It's important to note that the actual numbers you use to mark the
327−list have no effect on the HTML output Markdown produces. The HTML
328−Markdown produces from the above list is:
329−
330− <ol>
331− <li>Bird</li>
332− <li>McHale</li>
333− <li>Parish</li>
334− </ol>
335−
336−If you instead wrote the list in Markdown like this:
337−
338− 1. Bird
339− 1. McHale
340− 1. Parish
341−
342−or even:
343−
344− 3. Bird
345− 1. McHale
346− 8. Parish
347−
348−you'd get the exact same HTML output. The point is, if you want to,
349−you can use ordinal numbers in your ordered Markdown lists, so that
350−the numbers in your source match the numbers in your published HTML.
351−But if you want to be lazy, you don't have to.
352−
353−If you do use lazy list numbering, however, you should still start the
354−list with the number 1. At some point in the future, Markdown may support
355−starting ordered lists at an arbitrary number.
356−
357−List markers typically start at the left margin, but may be indented by
358−up to three spaces. List markers must be followed by one or more spaces
359−or a tab.
360−
361−To make lists look nice, you can wrap items with hanging indents:
362−
363− * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
364− Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
365− viverra nec, fringilla in, laoreet vitae, risus.
366− * Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
367− Suspendisse id sem consectetuer libero luctus adipiscing.
368−
369−But if you want to be lazy, you don't have to:
370−
371− * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
372− Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
373− viverra nec, fringilla in, laoreet vitae, risus.
374− * Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
375− Suspendisse id sem consectetuer libero luctus adipiscing.
376−
377−If list items are separated by blank lines, Markdown will wrap the
378−items in `<p>` tags in the HTML output. For example, this input:
379−
380− * Bird
381− * Magic
382−
383−will turn into:
384−
385− <ul>
386− <li>Bird</li>
387− <li>Magic</li>
388− </ul>
389−
390−But this:
391−
392− * Bird
393−
394− * Magic
395−
396−will turn into:
397−
398− <ul>
399− <li><p>Bird</p></li>
400− <li><p>Magic</p></li>
401− </ul>
402−
403−List items may consist of multiple paragraphs. Each subsequent
404−paragraph in a list item must be intended by either 4 spaces
405−or one tab:
406−
407− 1. This is a list item with two paragraphs. Lorem ipsum dolor
408− sit amet, consectetuer adipiscing elit. Aliquam hendrerit
409− mi posuere lectus.
410−
411− Vestibulum enim wisi, viverra nec, fringilla in, laoreet
412− vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
413− sit amet velit.
414−
415− 2. Suspendisse id sem consectetuer libero luctus adipiscing.
416−
417−It looks nice if you indent every line of the subsequent
418−paragraphs, but here again, Markdown will allow you to be
419−lazy:
420−
421− * This is a list item with two paragraphs.
422−
423− This is the second paragraph in the list item. You're
424− only required to indent the first line. Lorem ipsum dolor
425− sit amet, consectetuer adipiscing elit.
426−
427− * Another item in the same list.
428−
429−To put a blockquote within a list item, the blockquote's `>`
430−delimiters need to be indented:
431−
432− * A list item with a blockquote:
433−
434− > This is a blockquote
435− > inside a list item.
436−
437−To put a code block within a list item, the code block needs
438−to be indented *twice* -- 8 spaces or two tabs:
439−
440− * A list item with a code block:
441−
442− <code goes here>
443−
444−
445−It's worth noting that it's possible to trigger an ordered list by
446−accident, by writing something like this:
447−
448− 1986. What a great season.
449−
450−In other words, a *number-period-space* sequence at the beginning of a
451−line. To avoid this, you can backslash-escape the period:
452−
453− 1986\. What a great season.
454−
455−
456−
457−<h3 id="precode">Code Blocks</h3>
458−
459−Pre-formatted code blocks are used for writing about programming or
460−markup source code. Rather than forming normal paragraphs, the lines
461−of a code block are interpreted literally. Markdown wraps a code block
462−in both `<pre>` and `<code>` tags.
463−
464−To produce a code block in Markdown, simply indent every line of the
465−block by at least 4 spaces or 1 tab. For example, given this input:
466−
467− This is a normal paragraph:
468−
469− This is a code block.
470−
471−Markdown will generate:
472−
473− <p>This is a normal paragraph:</p>
474−
475− <pre><code>This is a code block.
476− </code></pre>
477−
478−One level of indentation -- 4 spaces or 1 tab -- is removed from each
479−line of the code block. For example, this:
480−
481− Here is an example of AppleScript:
482−
483− tell application "Foo"
484− beep
485− end tell
486−
487−will turn into:
488−
489− <p>Here is an example of AppleScript:</p>
490−
491− <pre><code>tell application "Foo"
492− beep
493− end tell
494− </code></pre>
495−
496−A code block continues until it reaches a line that is not indented
497−(or the end of the article).
498−
499−Within a code block, ampersands (`&`) and angle brackets (`<` and `>`)
500−are automatically converted into HTML entities. This makes it very
501−easy to include example HTML source code using Markdown -- just paste
502−it and indent it, and Markdown will handle the hassle of encoding the
503−ampersands and angle brackets. For example, this:
504−
505− <div class="footer">
506− &copy; 2004 Foo Corporation
507− </div>
508−
509−will turn into:
510−
511− <pre><code>&lt;div class="footer"&gt;
512− &amp;copy; 2004 Foo Corporation
513− &lt;/div&gt;
514− </code></pre>
515−
516−Regular Markdown syntax is not processed within code blocks. E.g.,
517−asterisks are just literal asterisks within a code block. This means
518−it's also easy to use Markdown to write about Markdown's own syntax.
519−
520−
521−
522−<h3 id="hr">Horizontal Rules</h3>
523−
524−You can produce a horizontal rule tag (`<hr />`) by placing three or
525−more hyphens, asterisks, or underscores on a line by themselves. If you
526−wish, you may use spaces between the hyphens or asterisks. Each of the
527−following lines will produce a horizontal rule:
528−
529− * * *
530−
531− ***
532−
533− *****
534−
535− - - -
536−
537− ---------------------------------------
538−
539− _ _ _
540−
541−
542−* * *
543−
544−<h2 id="span">Span Elements</h2>
545−
546−<h3 id="link">Links</h3>
547−
548−Markdown supports two style of links: *inline* and *reference*.
549−
550−In both styles, the link text is delimited by [square brackets].
551−
552−To create an inline link, use a set of regular parentheses immediately
553−after the link text's closing square bracket. Inside the parentheses,
554−put the URL where you want the link to point, along with an *optional*
555−title for the link, surrounded in quotes. For example:
556−
557− This is [an example](http://example.com/ "Title") inline link.
558−
559− [This link](http://example.net/) has no title attribute.
560−
561−Will produce:
562−
563− <p>This is <a href="http://example.com/" title="Title">
564− an example</a> inline link.</p>
565−
566− <p><a href="http://example.net/">This link</a> has no
567− title attribute.</p>
568−
569−If you're referring to a local resource on the same server, you can
570−use relative paths:
571−
572− See my [About](/about/) page for details.
573−
574−Reference-style links use a second set of square brackets, inside
575−which you place a label of your choosing to identify the link:
576−
577− This is [an example][id] reference-style link.
578−
579−You can optionally use a space to separate the sets of brackets:
580−
581− This is [an example] [id] reference-style link.
582−
583−Then, anywhere in the document, you define your link label like this,
584−on a line by itself:
585−
586− [id]: http://example.com/ "Optional Title Here"
587−
588−That is:
589−
590−* Square brackets containing the link identifier (optionally
591− indented from the left margin using up to three spaces);
592−* followed by a colon;
593−* followed by one or more spaces (or tabs);
594−* followed by the URL for the link;
595−* optionally followed by a title attribute for the link, enclosed
596− in double or single quotes.
597−
598−The link URL may, optionally, be surrounded by angle brackets:
599−
600− [id]: <http://example.com/> "Optional Title Here"
601−
602−You can put the title attribute on the next line and use extra spaces
603−or tabs for padding, which tends to look better with longer URLs:
604−
605− [id]: http://example.com/longish/path/to/resource/here
606− "Optional Title Here"
607−
608−Link definitions are only used for creating links during Markdown
609−processing, and are stripped from your document in the HTML output.
610−
611−Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are *not* case sensitive. E.g. these two links:
612−
613− [link text][a]
614− [link text][A]
615−
616−are equivalent.
617−
618−The *implicit link name* shortcut allows you to omit the name of the
619−link, in which case the link text itself is used as the name.
620−Just use an empty set of square brackets -- e.g., to link the word
621−"Google" to the google.com web site, you could simply write:
622−
623− [Google][]
624−
625−And then define the link:
626−
627− [Google]: http://google.com/
628−
629−Because link names may contain spaces, this shortcut even works for
630−multiple words in the link text:
631−
632− Visit [Daring Fireball][] for more information.
633−
634−And then define the link:
635−
636− [Daring Fireball]: http://daringfireball.net/
637−
638−Link definitions can be placed anywhere in your Markdown document. I
639−tend to put them immediately after each paragraph in which they're
640−used, but if you want, you can put them all at the end of your
641−document, sort of like footnotes.
642−
643−Here's an example of reference links in action:
644−
645− I get 10 times more traffic from [Google] [1] than from
646− [Yahoo] [2] or [MSN] [3].
647−
648− [1]: http://google.com/ "Google"
649− [2]: http://search.yahoo.com/ "Yahoo Search"
650− [3]: http://search.msn.com/ "MSN Search"
651−
652−Using the implicit link name shortcut, you could instead write:
653−
654− I get 10 times more traffic from [Google][] than from
655− [Yahoo][] or [MSN][].
656−
657− [google]: http://google.com/ "Google"
658− [yahoo]: http://search.yahoo.com/ "Yahoo Search"
659− [msn]: http://search.msn.com/ "MSN Search"
660−
661−Both of the above examples will produce the following HTML output:
662−
663− <p>I get 10 times more traffic from <a href="http://google.com/"
664− title="Google">Google</a> than from
665− <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
666− or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
667−
668−For comparison, here is the same paragraph written using
669−Markdown's inline link style:
670−
671− I get 10 times more traffic from [Google](http://google.com/ "Google")
672− than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
673− [MSN](http://search.msn.com/ "MSN Search").
674−
675−The point of reference-style links is not that they're easier to
676−write. The point is that with reference-style links, your document
677−source is vastly more readable. Compare the above examples: using
678−reference-style links, the paragraph itself is only 81 characters
679−long; with inline-style links, it's 176 characters; and as raw HTML,
680−it's 234 characters. In the raw HTML, there's more markup than there
681−is text.
682−
683−With Markdown's reference-style links, a source document much more
684−closely resembles the final output, as rendered in a browser. By
685−allowing you to move the markup-related metadata out of the paragraph,
686−you can add links without interrupting the narrative flow of your
687−prose.
688−
689−
690−<h3 id="em">Emphasis</h3>
691−
692−Markdown treats asterisks (`*`) and underscores (`_`) as indicators of
693−emphasis. Text wrapped with one `*` or `_` will be wrapped with an
694−HTML `<em>` tag; double `*`'s or `_`'s will be wrapped with an HTML
695−`<strong>` tag. E.g., this input:
696−
697− *single asterisks*
698−
699− _single underscores_
700−
701− **double asterisks**
702−
703− __double underscores__
704−
705−will produce:
706−
707− <em>single asterisks</em>
708−
709− <em>single underscores</em>
710−
711− <strong>double asterisks</strong>
712−
713− <strong>double underscores</strong>
714−
715−You can use whichever style you prefer; the lone restriction is that
716−the same character must be used to open and close an emphasis span.
717−
718−Emphasis can be used in the middle of a word:
719−
720− un*fucking*believable
721−
722−But if you surround an `*` or `_` with spaces, it'll be treated as a
723−literal asterisk or underscore.
724−
725−To produce a literal asterisk or underscore at a position where it
726−would otherwise be used as an emphasis delimiter, you can backslash
727−escape it:
728−
729− \*this text is surrounded by literal asterisks\*
730−
731−
732−
733−<h3 id="code">Code</h3>
734−
735−To indicate a span of code, wrap it with backtick quotes (`` ` ``).
736−Unlike a pre-formatted code block, a code span indicates code within a
737−normal paragraph. For example:
738−
739− Use the `printf()` function.
740−
741−will produce:
742−
743− <p>Use the <code>printf()</code> function.</p>
744−
745−To include a literal backtick character within a code span, you can use
746−multiple backticks as the opening and closing delimiters:
747−
748− ``There is a literal backtick (`) here.``
749−
750−which will produce this:
751−
752− <p><code>There is a literal backtick (`) here.</code></p>
753−
754−The backtick delimiters surrounding a code span may include spaces --
755−one after the opening, one before the closing. This allows you to place
756−literal backtick characters at the beginning or end of a code span:
757−
758− A single backtick in a code span: `` ` ``
759−
760− A backtick-delimited string in a code span: `` `foo` ``
761−
762−will produce:
763−
764− <p>A single backtick in a code span: <code>`</code></p>
765−
766− <p>A backtick-delimited string in a code span: <code>`foo`</code></p>
767−
768−With a code span, ampersands and angle brackets are encoded as HTML
769−entities automatically, which makes it easy to include example HTML
770−tags. Markdown will turn this:
771−
772− Please don't use any `<blink>` tags.
773−
774−into:
775−
776− <p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>
777−
778−You can write this:
779−
780− `&#8212;` is the decimal-encoded equivalent of `&mdash;`.
781−
782−to produce:
783−
784− <p><code>&amp;#8212;</code> is the decimal-encoded
785− equivalent of <code>&amp;mdash;</code>.</p>
786−
787−
788−
789−<h3 id="img">Images</h3>
790−
791−Admittedly, it's fairly difficult to devise a "natural" syntax for
792−placing images into a plain text document format.
793−
794−Markdown uses an image syntax that is intended to resemble the syntax
795−for links, allowing for two styles: *inline* and *reference*.
796−
797−Inline image syntax looks like this:
798−
799− ![Alt text](/path/to/img.jpg)
800−
801− ![Alt text](/path/to/img.jpg "Optional title")
802−
803−That is:
804−
805−* An exclamation mark: `!`;
806−* followed by a set of square brackets, containing the `alt`
807− attribute text for the image;
808−* followed by a set of parentheses, containing the URL or path to
809− the image, and an optional `title` attribute enclosed in double
810− or single quotes.
811−
812−Reference-style image syntax looks like this:
813−
814− ![Alt text][id]
815−
816−Where "id" is the name of a defined image reference. Image references
817−are defined using syntax identical to link references:
818−
819− [id]: url/to/image "Optional title attribute"
820−
821−As of this writing, Markdown has no syntax for specifying the
822−dimensions of an image; if this is important to you, you can simply
823−use regular HTML `<img>` tags.
824−
825−
826−* * *
827−
828−
829−<h2 id="misc">Miscellaneous</h2>
830−
831−<h3 id="autolink">Automatic Links</h3>
832−
833−Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
834−
835− <http://example.com/>
836−
837−Markdown will turn this into:
838−
839− <a href="http://example.com/">http://example.com/</a>
840−
841−Automatic links for email addresses work similarly, except that
842−Markdown will also perform a bit of randomized decimal and hex
843−entity-encoding to help obscure your address from address-harvesting
844−spambots. For example, Markdown will turn this:
845−
846− <address@example.com>
847−
848−into something like this:
849−
850− <a href="&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;
851− &#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;
852− &#109;">&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;
853− &#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a>
854−
855−which will render in a browser as a clickable link to "address@example.com".
856−
857−(This sort of entity-encoding trick will indeed fool many, if not
858−most, address-harvesting bots, but it definitely won't fool all of
859−them. It's better than nothing, but an address published in this way
860−will probably eventually start receiving spam.)
861−
862−
863−
864−<h3 id="backslash">Backslash Escapes</h3>
865−
866−Markdown allows you to use backslash escapes to generate literal
867−characters which would otherwise have special meaning in Markdown's
868−formatting syntax. For example, if you wanted to surround a word with
869−literal asterisks (instead of an HTML `<em>` tag), you can backslashes
870−before the asterisks, like this:
871−
872− \*literal asterisks\*
873−
874−Markdown provides backslash escapes for the following characters:
875−
876− \ backslash
877− ` backtick
878− * asterisk
879− _ underscore
880− {} curly braces
881− [] square brackets
882− () parentheses
883− # hash mark
884− + plus sign
885− - minus sign (hyphen)
886− . dot
887− ! exclamation mark
888−
tests/MarkdownTest_1.0.3/Tests/Nested blockquotes.htmldeleted−9
@@ -1,9 +0,0 @@
1−<blockquote>
2− <p>foo</p>
3−
4− <blockquote>
5− <p>bar</p>
6− </blockquote>
7−
8− <p>foo</p>
9−</blockquote>
tests/MarkdownTest_1.0.3/Tests/Nested blockquotes.textdeleted−5
@@ -1,5 +0,0 @@
1−> foo
2−>
3−> > bar
4−>
5−> foo
tests/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.htmldeleted−148
@@ -1,148 +0,0 @@
1−<h2>Unordered</h2>
2−
3−<p>Asterisks tight:</p>
4−
5−<ul>
6−<li>asterisk 1</li>
7−<li>asterisk 2</li>
8−<li>asterisk 3</li>
9−</ul>
10−
11−<p>Asterisks loose:</p>
12−
13−<ul>
14−<li><p>asterisk 1</p></li>
15−<li><p>asterisk 2</p></li>
16−<li><p>asterisk 3</p></li>
17−</ul>
18−
19−<hr />
20−
21−<p>Pluses tight:</p>
22−
23−<ul>
24−<li>Plus 1</li>
25−<li>Plus 2</li>
26−<li>Plus 3</li>
27−</ul>
28−
29−<p>Pluses loose:</p>
30−
31−<ul>
32−<li><p>Plus 1</p></li>
33−<li><p>Plus 2</p></li>
34−<li><p>Plus 3</p></li>
35−</ul>
36−
37−<hr />
38−
39−<p>Minuses tight:</p>
40−
41−<ul>
42−<li>Minus 1</li>
43−<li>Minus 2</li>
44−<li>Minus 3</li>
45−</ul>
46−
47−<p>Minuses loose:</p>
48−
49−<ul>
50−<li><p>Minus 1</p></li>
51−<li><p>Minus 2</p></li>
52−<li><p>Minus 3</p></li>
53−</ul>
54−
55−<h2>Ordered</h2>
56−
57−<p>Tight:</p>
58−
59−<ol>
60−<li>First</li>
61−<li>Second</li>
62−<li>Third</li>
63−</ol>
64−
65−<p>and:</p>
66−
67−<ol>
68−<li>One</li>
69−<li>Two</li>
70−<li>Three</li>
71−</ol>
72−
73−<p>Loose using tabs:</p>
74−
75−<ol>
76−<li><p>First</p></li>
77−<li><p>Second</p></li>
78−<li><p>Third</p></li>
79−</ol>
80−
81−<p>and using spaces:</p>
82−
83−<ol>
84−<li><p>One</p></li>
85−<li><p>Two</p></li>
86−<li><p>Three</p></li>
87−</ol>
88−
89−<p>Multiple paragraphs:</p>
90−
91−<ol>
92−<li><p>Item 1, graf one.</p>
93−
94−<p>Item 2. graf two. The quick brown fox jumped over the lazy dog's
95−back.</p></li>
96−<li><p>Item 2.</p></li>
97−<li><p>Item 3.</p></li>
98−</ol>
99−
100−<h2>Nested</h2>
101−
102−<ul>
103−<li>Tab
104−<ul>
105−<li>Tab
106−<ul>
107−<li>Tab</li>
108−</ul></li>
109−</ul></li>
110−</ul>
111−
112−<p>Here's another:</p>
113−
114−<ol>
115−<li>First</li>
116−<li>Second:
117−<ul>
118−<li>Fee</li>
119−<li>Fie</li>
120−<li>Foe</li>
121−</ul></li>
122−<li>Third</li>
123−</ol>
124−
125−<p>Same thing but with paragraphs:</p>
126−
127−<ol>
128−<li><p>First</p></li>
129−<li><p>Second:</p>
130−
131−<ul>
132−<li>Fee</li>
133−<li>Fie</li>
134−<li>Foe</li>
135−</ul></li>
136−<li><p>Third</p></li>
137−</ol>
138−
139−
140−<p>This was an error in Markdown 1.0.1:</p>
141−
142−<ul>
143−<li><p>this</p>
144−
145−<ul><li>sub</li></ul>
146−
147−<p>that</p></li>
148−</ul>
tests/MarkdownTest_1.0.3/Tests/Ordered and unordered lists.textdeleted−131
@@ -1,131 +0,0 @@
1−## Unordered
2−
3−Asterisks tight:
4−
5−* asterisk 1
6−* asterisk 2
7−* asterisk 3
8−
9−
10−Asterisks loose:
11−
12−* asterisk 1
13−
14−* asterisk 2
15−
16−* asterisk 3
17−
18−* * *
19−
20−Pluses tight:
21−
22−+ Plus 1
23−+ Plus 2
24−+ Plus 3
25−
26−
27−Pluses loose:
28−
29−+ Plus 1
30−
31−+ Plus 2
32−
33−+ Plus 3
34−
35−* * *
36−
37−
38−Minuses tight:
39−
40−- Minus 1
41−- Minus 2
42−- Minus 3
43−
44−
45−Minuses loose:
46−
47−- Minus 1
48−
49−- Minus 2
50−
51−- Minus 3
52−
53−
54−## Ordered
55−
56−Tight:
57−
58−1. First
59−2. Second
60−3. Third
61−
62−and:
63−
64−1. One
65−2. Two
66−3. Three
67−
68−
69−Loose using tabs:
70−
71−1. First
72−
73−2. Second
74−
75−3. Third
76−
77−and using spaces:
78−
79−1. One
80−
81−2. Two
82−
83−3. Three
84−
85−Multiple paragraphs:
86−
87−1. Item 1, graf one.
88−
89− Item 2. graf two. The quick brown fox jumped over the lazy dog's
90− back.
91−
92−2. Item 2.
93−
94−3. Item 3.
95−
96−
97−
98−## Nested
99−
100−* Tab
101− * Tab
102− * Tab
103−
104−Here's another:
105−
106−1. First
107−2. Second:
108− * Fee
109− * Fie
110− * Foe
111−3. Third
112−
113−Same thing but with paragraphs:
114−
115−1. First
116−
117−2. Second:
118− * Fee
119− * Fie
120− * Foe
121−
122−3. Third
123−
124−
125−This was an error in Markdown 1.0.1:
126−
127−* this
128−
129− * sub
130−
131− that
tests/MarkdownTest_1.0.3/Tests/Strong and em together.htmldeleted−7
@@ -1,7 +0,0 @@
1−<p><strong><em>This is strong and em.</em></strong></p>
2−
3−<p>So is <strong><em>this</em></strong> word.</p>
4−
5−<p><strong><em>This is strong and em.</em></strong></p>
6−
7−<p>So is <strong><em>this</em></strong> word.</p>
tests/MarkdownTest_1.0.3/Tests/Strong and em together.textdeleted−7
@@ -1,7 +0,0 @@
1−***This is strong and em.***
2−
3−So is ***this*** word.
4−
5−___This is strong and em.___
6−
7−So is ___this___ word.
tests/MarkdownTest_1.0.3/Tests/Tabs.htmldeleted−25
@@ -1,25 +0,0 @@
1−<ul>
2−<li><p>this is a list item
3−indented with tabs</p></li>
4−<li><p>this is a list item
5−indented with spaces</p></li>
6−</ul>
7−
8−<p>Code:</p>
9−
10−<pre><code>this code block is indented by one tab
11−</code></pre>
12−
13−<p>And:</p>
14−
15−<pre><code> this code block is indented by two tabs
16−</code></pre>
17−
18−<p>And:</p>
19−
20−<pre><code>+ this is an example list item
21− indented with tabs
22−
23−+ this is an example list item
24− indented with spaces
25−</code></pre>
tests/MarkdownTest_1.0.3/Tests/Tabs.textdeleted−21
@@ -1,21 +0,0 @@
1−+ this is a list item
2− indented with tabs
3−
4−+ this is a list item
5− indented with spaces
6−
7−Code:
8−
9− this code block is indented by one tab
10−
11−And:
12−
13− this code block is indented by two tabs
14−
15−And:
16−
17− + this is an example list item
18− indented with tabs
19−
20− + this is an example list item
21− indented with spaces
tests/MarkdownTest_1.0.3/Tests/Tidyness.htmldeleted−8
@@ -1,8 +0,0 @@
1−<blockquote>
2−<p>A list within a blockquote:</p>
3−<ul>
4−<li>asterisk 1</li>
5−<li>asterisk 2</li>
6−<li>asterisk 3</li>
7−</ul>
8−</blockquote>
tests/MarkdownTest_1.0.3/Tests/Tidyness.textdeleted−5
@@ -1,5 +0,0 @@
1−> A list within a blockquote:
2−>
3−> * asterisk 1
4−> * asterisk 2
5−> * asterisk 3