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>
|
<h1>This is an h1</h1>
|
||||||
<h2>This is an h2</h2>
|
<h2>This is an h2</h2>
|
||||||
<h3>This is an h3</h3>
|
<h3>This is an h3</h3>
|
||||||
<h4>This is an h4</h4>
|
<h4>This is an h4</h4>
|
||||||
<h5>This is an h5</h5>
|
<h5>This is an h5</h5>
|
||||||
<h6>This is an h6</h6>
|
<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>
|
|
@ -1,27 +1,11 @@
|
|||||||
# This is an h1
|
# This is an h1
|
||||||
|
|
||||||
## This is an h2
|
## This is an h2
|
||||||
|
|
||||||
### This is an h3
|
### This is an h3
|
||||||
|
|
||||||
#### This is an h4
|
#### This is an h4
|
||||||
|
|
||||||
##### This is an h5
|
##### This is an h5
|
||||||
|
|
||||||
###### This is an h6
|
###### 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 ##
|
|
@ -1,25 +1,13 @@
|
|||||||
<p>Here's a regular blockquote:</p>
|
<p>Here's a regular blockquote:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>This is a blockquote.</p>
|
<p>blockquote</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>Here's one with no space after the ">":</p>
|
<p>Here's one with no space after the ">":</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>This is a blockquote.</p>
|
<p>blockquote</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>Here's one with multiple paragraphs:</p>
|
<p>Here's one on multiple lines:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>This is line one.</p>
|
<p>line 1
|
||||||
<p>This is line two.</p>
|
line 2</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>
|
|
||||||
</blockquote>
|
</blockquote>
|
@ -1,24 +1,12 @@
|
|||||||
Here's a regular blockquote:
|
Here's a regular blockquote:
|
||||||
|
|
||||||
> This is a blockquote.
|
> blockquote
|
||||||
|
|
||||||
Here's one with no space after the ">":
|
Here's one with no space after the ">":
|
||||||
|
|
||||||
>This is a blockquote.
|
>blockquote
|
||||||
|
|
||||||
Here's one with multiple paragraphs:
|
Here's one on multiple lines:
|
||||||
|
|
||||||
> This is line one.
|
> line 1
|
||||||
>
|
> line 2
|
||||||
> 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.
|
|
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