mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
improve tests
This commit is contained in:
parent
e15241cb92
commit
d306ee3db5
@ -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>
|
@ -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
|
@ -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>
|
@ -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
|
6
tests/data/closed_atx_heading.html
Normal file
6
tests/data/closed_atx_heading.html
Normal file
@ -0,0 +1,6 @@
|
||||
<h1>h1</h1>
|
||||
<h2>h2</h2>
|
||||
<h3>h3</h3>
|
||||
<h4>h4</h4>
|
||||
<h5>h5</h5>
|
||||
<h6>h6</h6>
|
11
tests/data/closed_atx_heading.md
Normal file
11
tests/data/closed_atx_heading.md
Normal file
@ -0,0 +1,11 @@
|
||||
# h1 #
|
||||
|
||||
## h2 ##
|
||||
|
||||
### h3 ###
|
||||
|
||||
#### h4 ####
|
||||
|
||||
##### h5 #####
|
||||
|
||||
###### h6 ######
|
16
tests/data/compound_blockquote.html
Normal file
16
tests/data/compound_blockquote.html
Normal 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>
|
14
tests/data/compound_blockquote.md
Normal file
14
tests/data/compound_blockquote.md
Normal 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.
|
4
tests/data/lazy_blockquote.html
Normal file
4
tests/data/lazy_blockquote.html
Normal file
@ -0,0 +1,4 @@
|
||||
<blockquote>
|
||||
<p>line 1
|
||||
line 2</p>
|
||||
</blockquote>
|
2
tests/data/lazy_blockquote.md
Normal file
2
tests/data/lazy_blockquote.md
Normal file
@ -0,0 +1,2 @@
|
||||
> line 1
|
||||
line 2
|
4
tests/data/lazy_list_item.html
Normal file
4
tests/data/lazy_list_item.html
Normal file
@ -0,0 +1,4 @@
|
||||
<ul>
|
||||
<li>li
|
||||
more text</li>
|
||||
</ul>
|
2
tests/data/lazy_list_item.md
Normal file
2
tests/data/lazy_list_item.md
Normal file
@ -0,0 +1,2 @@
|
||||
- li
|
||||
more text
|
2
tests/data/line_break.html
Normal file
2
tests/data/line_break.html
Normal file
@ -0,0 +1,2 @@
|
||||
<p>line<br />
|
||||
line</p>
|
2
tests/data/line_break.md
Normal file
2
tests/data/line_break.md
Normal file
@ -0,0 +1,2 @@
|
||||
line
|
||||
line
|
@ -0,0 +1,4 @@
|
||||
<p>Here's a paragraph.</p>
|
||||
<blockquote>
|
||||
<p>a block quote that belongs to it.</p>
|
||||
</blockquote>
|
@ -0,0 +1,2 @@
|
||||
Here's a paragraph.
|
||||
> a block quote that belongs to it.
|
2
tests/data/setext.html
Normal file
2
tests/data/setext.html
Normal file
@ -0,0 +1,2 @@
|
||||
<h2>line</h2>
|
||||
<h2>line</h2>
|
5
tests/data/setext.md
Normal file
5
tests/data/setext.md
Normal file
@ -0,0 +1,5 @@
|
||||
line
|
||||
-
|
||||
|
||||
line
|
||||
----
|
Loading…
x
Reference in New Issue
Block a user