1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

improve tests

This commit is contained in:
Emanuil 2013-09-24 01:09:13 +03:00
parent e15241cb92
commit d306ee3db5
18 changed files with 117 additions and 89 deletions

View File

@ -1,14 +1,6 @@
<h1>This is an h1</h1>
<h2>This is an h2</h2>
<h3>This is an h3</h3>
<h4>This is an h4</h4>
<h5>This is an h5</h5>
<h6>This is an h6</h6>
<h1>This is a closed h1</h1>
<h2>This is a closed h2</h2>
<h3>This is a closed h3</h3>
<h4>This is a closed h4</h4>
<h5>This is a closed h5</h5>
<h6>This is a closed h6</h6>
<h1>This is an irregularly closed h1</h1>
<h4>This is an irregularly closed h4</h4>
<h1>This is an h1</h1>
<h2>This is an h2</h2>
<h3>This is an h3</h3>
<h4>This is an h4</h4>
<h5>This is an h5</h5>
<h6>This is an h6</h6>

View File

@ -1,27 +1,11 @@
# This is an h1
## This is an h2
### This is an h3
#### This is an h4
##### This is an h5
###### This is an h6
# This is a closed h1 #
## This is a closed h2 ##
### This is a closed h3 ###
#### This is a closed h4 ####
##### This is a closed h5 #####
###### This is a closed h6 ######
# This is an irregularly closed h1 ###
#### This is an irregularly closed h4 ##
# This is an h1
## This is an h2
### This is an h3
#### This is an h4
##### This is an h5
###### This is an h6

View File

@ -1,25 +1,13 @@
<p>Here's a regular blockquote:</p>
<blockquote>
<p>This is a blockquote.</p>
</blockquote>
<p>Here's one with no space after the ">":</p>
<blockquote>
<p>This is a blockquote.</p>
</blockquote>
<p>Here's one with multiple paragraphs:</p>
<blockquote>
<p>This is line one.</p>
<p>This is line two.</p>
</blockquote>
<p>Here's one with multiple types of blocks:</p>
<blockquote>
<p>This is a quoted paragraph.</p>
<ul>
<li>This is a list item of a quoted list.</li>
<li>This is another list item.</li>
</ul>
<blockquote>
<p>This is a nested quote block.</p>
</blockquote>
<p>This is another paragraph.</p>
<p>Here's a regular blockquote:</p>
<blockquote>
<p>blockquote</p>
</blockquote>
<p>Here's one with no space after the ">":</p>
<blockquote>
<p>blockquote</p>
</blockquote>
<p>Here's one on multiple lines:</p>
<blockquote>
<p>line 1
line 2</p>
</blockquote>

View File

@ -1,24 +1,12 @@
Here's a regular blockquote:
> This is a blockquote.
Here's one with no space after the ">":
>This is a blockquote.
Here's one with multiple paragraphs:
> This is line one.
>
> This is line two.
Here's one with multiple types of blocks:
> This is a quoted paragraph.
>
> - This is a list item of a quoted list.
> - This is another list item.
>
> > This is a nested quote block.
>
> This is another paragraph.
Here's a regular blockquote:
> blockquote
Here's one with no space after the ">":
>blockquote
Here's one on multiple lines:
> line 1
> line 2

View File

@ -0,0 +1,6 @@
<h1>h1</h1>
<h2>h2</h2>
<h3>h3</h3>
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>

View File

@ -0,0 +1,11 @@
# h1 #
## h2 ##
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######

View File

@ -0,0 +1,16 @@
<p>Here's one with multiple paragraphs:</p>
<blockquote>
<p>This is line one.</p>
<p>This is line two.</p>
</blockquote>
<p>Here's one with multiple types of blocks:</p>
<blockquote>
<p>This is a quoted paragraph.</p>
<ul>
<li>This is a list item of a quoted list.</li>
<li>This is another list item.</li>
</ul>
<blockquote>
<p>This is a nested quote block.</p>
</blockquote>
</blockquote>

View File

@ -0,0 +1,14 @@
Here's one with multiple paragraphs:
> This is line one.
>
> This is line two.
Here's one with multiple types of blocks:
> This is a quoted paragraph.
>
> - This is a list item of a quoted list.
> - This is another list item.
>
> > This is a nested quote block.

View File

@ -0,0 +1,4 @@
<blockquote>
<p>line 1
line 2</p>
</blockquote>

View File

@ -0,0 +1,2 @@
> line 1
line 2

View File

@ -0,0 +1,4 @@
<ul>
<li>li
more text</li>
</ul>

View File

@ -0,0 +1,2 @@
- li
more text

View File

@ -0,0 +1,2 @@
<p>line<br />
line</p>

2
tests/data/line_break.md Normal file
View File

@ -0,0 +1,2 @@
line
line

View File

@ -0,0 +1,4 @@
<p>Here's a paragraph.</p>
<blockquote>
<p>a block quote that belongs to it.</p>
</blockquote>

View File

@ -0,0 +1,2 @@
Here's a paragraph.
> a block quote that belongs to it.

2
tests/data/setext.html Normal file
View File

@ -0,0 +1,2 @@
<h2>line</h2>
<h2>line</h2>

5
tests/data/setext.md Normal file
View File

@ -0,0 +1,5 @@
line
-
line
----