aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/markdown-test/auto-links.html8
-rw-r--r--tests/markdown-test/auto-links.txt6
-rw-r--r--tests/misc/blockquote.html22
-rw-r--r--tests/misc/blockquote.txt21
4 files changed, 53 insertions, 4 deletions
diff --git a/tests/markdown-test/auto-links.html b/tests/markdown-test/auto-links.html
index 2b22fea..229ebb4 100644
--- a/tests/markdown-test/auto-links.html
+++ b/tests/markdown-test/auto-links.html
@@ -1,6 +1,9 @@
-
<p>Link: <a href="http://example.com/">http://example.com/</a>.
</p>
+<p>Https link: <a href="https://example.com">https://example.com</a>
+</p>
+<p>Ftp link: <a href="ftp://example.com">ftp://example.com</a>
+</p>
<p>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a>
</p>
<ul>
@@ -21,5 +24,4 @@
</blockquote><p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code>
</p>
<pre><code>or here: &lt;http://example.com/&gt;
-</code></pre>
-
+</code></pre> \ No newline at end of file
diff --git a/tests/markdown-test/auto-links.txt b/tests/markdown-test/auto-links.txt
index abbc488..a188b40 100644
--- a/tests/markdown-test/auto-links.txt
+++ b/tests/markdown-test/auto-links.txt
@@ -1,5 +1,9 @@
Link: <http://example.com/>.
+Https link: <https://example.com>
+
+Ftp link: <ftp://example.com>
+
With an ampersand: <http://example.com/?foo=1&bar=2>
* In a list?
@@ -10,4 +14,4 @@ With an ampersand: <http://example.com/?foo=1&bar=2>
Auto-links should not occur here: `<http://example.com/>`
- or here: <http://example.com/> \ No newline at end of file
+ or here: <http://example.com/>
diff --git a/tests/misc/blockquote.html b/tests/misc/blockquote.html
new file mode 100644
index 0000000..ec16d1f
--- /dev/null
+++ b/tests/misc/blockquote.html
@@ -0,0 +1,22 @@
+<blockquote><p>blockquote with no whitespace before <code>&gt;</code>.
+</p>
+</blockquote><p>foo
+</p>
+<blockquote><p>blockquote with one space before the <code>&gt;</code>.
+</p>
+</blockquote><p>bar
+</p>
+<blockquote><p>blockquote with 2 spaces.
+</p>
+</blockquote><p>baz
+</p>
+<p> &gt; this has three spaces so its a paragraph.
+</p>
+<p>blah
+</p>
+<pre><code>&gt; this one had four so it's a code block.
+</code></pre><blockquote><blockquote><p>this nested blockquote has 0 on level one and 3 (one after the first <code>&gt;</code> + 2 more) on level 2.
+</p>
+</blockquote><p> &gt; and this has 4 on level 2 - another code block.
+</p>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/blockquote.txt b/tests/misc/blockquote.txt
new file mode 100644
index 0000000..be3ff90
--- /dev/null
+++ b/tests/misc/blockquote.txt
@@ -0,0 +1,21 @@
+> blockquote with no whitespace before `>`.
+
+foo
+
+ > blockquote with one space before the `>`.
+
+bar
+
+ > blockquote with 2 spaces.
+
+baz
+
+ > this has three spaces so its a paragraph.
+
+blah
+
+ > this one had four so it's a code block.
+
+> > this nested blockquote has 0 on level one and 3 (one after the first `>` + 2 more) on level 2.
+
+> > and this has 4 on level 2 - another code block.