mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
added test coverage for horizontal rulers and fixed rulers with underscores
This commit is contained in:
parent
99bf0d4bba
commit
b77252038f
28
tests/data/horizontal_rule.html
Normal file
28
tests/data/horizontal_rule.html
Normal file
@ -0,0 +1,28 @@
|
||||
<p>Horizontal line with dashes</p>
|
||||
<hr />
|
||||
<p>Horizontal line with asterisks</p>
|
||||
<hr />
|
||||
<p>Horizontal line with underscores</p>
|
||||
<hr />
|
||||
<p>Horizontal lines with more characters</p>
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<p>Horizontal lines with spaces</p>
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<p>Not horizontal lines</p>
|
||||
<ul>
|
||||
<li> _ -</li>
|
||||
</ul>
|
||||
<p>*--</p>
|
||||
<ul>
|
||||
<li>- - _ _ _</li>
|
||||
</ul>
|
47
tests/data/horizontal_rule.md
Normal file
47
tests/data/horizontal_rule.md
Normal file
@ -0,0 +1,47 @@
|
||||
Horizontal line with dashes
|
||||
|
||||
---
|
||||
|
||||
Horizontal line with asterisks
|
||||
|
||||
***
|
||||
|
||||
Horizontal line with underscores
|
||||
|
||||
___
|
||||
|
||||
Horizontal lines with more characters
|
||||
|
||||
-------------
|
||||
|
||||
*************
|
||||
|
||||
_____________
|
||||
|
||||
Horizontal lines with spaces
|
||||
|
||||
- - -
|
||||
|
||||
- - -
|
||||
|
||||
- - -
|
||||
|
||||
-- -
|
||||
|
||||
- - -
|
||||
|
||||
* * *
|
||||
|
||||
* * *
|
||||
|
||||
* **
|
||||
|
||||
__ __ ___ _ ___
|
||||
|
||||
Not horizontal lines
|
||||
|
||||
- _ -
|
||||
|
||||
*--
|
||||
|
||||
- - - _ _ _
|
Loading…
Reference in New Issue
Block a user