This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add package tests, comprising tests from the MarkdownTest_1.0.3 suite
- Loading branch information
Showing
43 changed files
with
3,588 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This directory contains test files used by ../markdown_test.go. | ||
|
||
## INDEX | ||
|
||
* *md1.0.3* | ||
|
||
Files from John Gruber's test suite MarkdownTest_1.0.3, | ||
imported from https://github.com/jgm/peg-markdown/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pmd=../../,,pmd/markdown | ||
|
||
for (i in *.text) { | ||
stem=`{echo $i | sed 's,.text$,,'} | ||
$pmd < $i >$"stem.html | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<p>AT&T has an ampersand in their name.</p> | ||
|
||
<p>AT&T is another way to write it.</p> | ||
|
||
<p>This & that.</p> | ||
|
||
<p>4 < 5.</p> | ||
|
||
<p>6 > 5.</p> | ||
|
||
<p>Here's a <a href="http://example.com/?foo=1&bar=2">link</a> with an ampersand in the URL.</p> | ||
|
||
<p>Here's a link with an amersand in the link text: <a href="http://att.com/" title="AT&T">AT&T</a>.</p> | ||
|
||
<p>Here's an inline <a href="/script?foo=1&bar=2">link</a>.</p> | ||
|
||
<p>Here's an inline <a href="/script?foo=1&bar=2">link</a>.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
AT&T has an ampersand in their name. | ||
|
||
AT&T is another way to write it. | ||
|
||
This & that. | ||
|
||
4 < 5. | ||
|
||
6 > 5. | ||
|
||
Here's a [link] [1] with an ampersand in the URL. | ||
|
||
Here's a link with an amersand in the link text: [AT&T] [2]. | ||
|
||
Here's an inline [link](/script?foo=1&bar=2). | ||
|
||
Here's an inline [link](</script?foo=1&bar=2>). | ||
|
||
|
||
[1]: http://example.com/?foo=1&bar=2 | ||
[2]: http://att.com/ "AT&T" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<p>Link: <a href="http://example.com/">http://example.com/</a>.</p> | ||
|
||
<p>With an ampersand: <a href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</a></p> | ||
|
||
<ul> | ||
<li>In a list?</li> | ||
<li><a href="http://example.com/">http://example.com/</a></li> | ||
<li>It should.</li> | ||
</ul> | ||
|
||
<blockquote> | ||
<p>Blockquoted: <a href="http://example.com/">http://example.com/</a></p> | ||
</blockquote> | ||
|
||
<p>Auto-links should not occur here: <code><http://example.com/></code></p> | ||
|
||
<pre><code>or here: <http://example.com/> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Link: <http://example.com/>. | ||
|
||
With an ampersand: <http://example.com/?foo=1&bar=2> | ||
|
||
* In a list? | ||
* <http://example.com/> | ||
* It should. | ||
|
||
> Blockquoted: <http://example.com/> | ||
|
||
Auto-links should not occur here: `<http://example.com/>` | ||
|
||
or here: <http://example.com/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<p>These should all get escaped:</p> | ||
|
||
<p>Backslash: \</p> | ||
|
||
<p>Backtick: `</p> | ||
|
||
<p>Asterisk: *</p> | ||
|
||
<p>Underscore: _</p> | ||
|
||
<p>Left brace: {</p> | ||
|
||
<p>Right brace: }</p> | ||
|
||
<p>Left bracket: [</p> | ||
|
||
<p>Right bracket: ]</p> | ||
|
||
<p>Left paren: (</p> | ||
|
||
<p>Right paren: )</p> | ||
|
||
<p>Greater-than: ></p> | ||
|
||
<p>Hash: #</p> | ||
|
||
<p>Period: .</p> | ||
|
||
<p>Bang: !</p> | ||
|
||
<p>Plus: +</p> | ||
|
||
<p>Minus: -</p> | ||
|
||
<p>These should not, because they occur within a code block:</p> | ||
|
||
<pre><code>Backslash: \\ | ||
|
||
Backtick: \` | ||
|
||
Asterisk: \* | ||
|
||
Underscore: \_ | ||
|
||
Left brace: \{ | ||
|
||
Right brace: \} | ||
|
||
Left bracket: \[ | ||
|
||
Right bracket: \] | ||
|
||
Left paren: \( | ||
|
||
Right paren: \) | ||
|
||
Greater-than: \> | ||
|
||
Hash: \# | ||
|
||
Period: \. | ||
|
||
Bang: \! | ||
|
||
Plus: \+ | ||
|
||
Minus: \- | ||
</code></pre> | ||
|
||
<p>Nor should these, which occur in code spans:</p> | ||
|
||
<p>Backslash: <code>\\</code></p> | ||
|
||
<p>Backtick: <code>\`</code></p> | ||
|
||
<p>Asterisk: <code>\*</code></p> | ||
|
||
<p>Underscore: <code>\_</code></p> | ||
|
||
<p>Left brace: <code>\{</code></p> | ||
|
||
<p>Right brace: <code>\}</code></p> | ||
|
||
<p>Left bracket: <code>\[</code></p> | ||
|
||
<p>Right bracket: <code>\]</code></p> | ||
|
||
<p>Left paren: <code>\(</code></p> | ||
|
||
<p>Right paren: <code>\)</code></p> | ||
|
||
<p>Greater-than: <code>\></code></p> | ||
|
||
<p>Hash: <code>\#</code></p> | ||
|
||
<p>Period: <code>\.</code></p> | ||
|
||
<p>Bang: <code>\!</code></p> | ||
|
||
<p>Plus: <code>\+</code></p> | ||
|
||
<p>Minus: <code>\-</code></p> | ||
|
||
<p>These should get escaped, even though they're matching pairs for | ||
other Markdown constructs:</p> | ||
|
||
<p>*asterisks*</p> | ||
|
||
<p>_underscores_</p> | ||
|
||
<p>`backticks`</p> | ||
|
||
<p>This is a code span with a literal backslash-backtick sequence: <code>\`</code></p> | ||
|
||
<p>This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.</p> | ||
|
||
<p>This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.</p> |
Oops, something went wrong.