mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Added tests for consistency when a markdown follows a markup without blank line.
This commit is contained in:
parent
728952b90a
commit
be963a6531
@ -10,7 +10,8 @@ class ParsedownTest extends PHPUnit_Framework_TestCase
|
||||
parent::__construct($name, $data, $dataName);
|
||||
}
|
||||
|
||||
private $dirs, $Parsedown;
|
||||
private $dirs;
|
||||
protected $Parsedown;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
|
3
test/data/markup_consecutive_one.html
Normal file
3
test/data/markup_consecutive_one.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div>Markup</div>
|
||||
<p><em>No markdown</em> without blank line if strict compliance, but <strong>main</strong> processors convert it.</p>
|
||||
<p><strong>Markdown</strong></p>
|
4
test/data/markup_consecutive_one.md
Normal file
4
test/data/markup_consecutive_one.md
Normal file
@ -0,0 +1,4 @@
|
||||
<div>Markup</div>
|
||||
_No markdown_ without blank line if strict compliance, but **main** processors convert it.
|
||||
|
||||
**Markdown**
|
4
test/data/markup_consecutive_one_line.html
Normal file
4
test/data/markup_consecutive_one_line.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div>One markup on
|
||||
two lines</div>
|
||||
<p><em>Markdown</em></p>
|
||||
<p><strong>Markdown</strong></p>
|
5
test/data/markup_consecutive_one_line.md
Normal file
5
test/data/markup_consecutive_one_line.md
Normal file
@ -0,0 +1,5 @@
|
||||
<div>One markup on
|
||||
two lines</div>
|
||||
_Markdown_
|
||||
|
||||
**Markdown**
|
3
test/data/markup_consecutive_one_stripped.html
Normal file
3
test/data/markup_consecutive_one_stripped.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div><p>Stripped markup</p></div>
|
||||
<p><em>Markdown</em></p>
|
||||
<p><strong>Markdown</strong></p>
|
4
test/data/markup_consecutive_one_stripped.md
Normal file
4
test/data/markup_consecutive_one_stripped.md
Normal file
@ -0,0 +1,4 @@
|
||||
<div><p>Stripped markup</p></div>
|
||||
_Markdown_
|
||||
|
||||
**Markdown**
|
3
test/data/markup_consecutive_two.html
Normal file
3
test/data/markup_consecutive_two.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div>First markup</div><p>and second markup on the same line.</p>
|
||||
<p><em>Markdown</em></p>
|
||||
<p><strong>Markdown</strong></p>
|
4
test/data/markup_consecutive_two.md
Normal file
4
test/data/markup_consecutive_two.md
Normal file
@ -0,0 +1,4 @@
|
||||
<div>First markup</div><p>and second markup on the same line.</p>
|
||||
_Markdown_
|
||||
|
||||
**Markdown**
|
4
test/data/markup_consecutive_two_lines.html
Normal file
4
test/data/markup_consecutive_two_lines.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div>First markup</div><p>and partial markup
|
||||
on two lines.</p>
|
||||
<p><em>Markdown</em></p>
|
||||
<p><strong>Markdown</strong></p>
|
5
test/data/markup_consecutive_two_lines.md
Normal file
5
test/data/markup_consecutive_two_lines.md
Normal file
@ -0,0 +1,5 @@
|
||||
<div>First markup</div><p>and partial markup
|
||||
on two lines.</p>
|
||||
_Markdown_
|
||||
|
||||
**Markdown**
|
4
test/data/markup_consecutive_two_stripped.html
Normal file
4
test/data/markup_consecutive_two_stripped.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div><p>Stripped markup
|
||||
on two lines</p></div>
|
||||
<p><em>Markdown</em></p>
|
||||
<p><strong>Markdown</strong></p>
|
5
test/data/markup_consecutive_two_stripped.md
Normal file
5
test/data/markup_consecutive_two_stripped.md
Normal file
@ -0,0 +1,5 @@
|
||||
<div><p>Stripped markup
|
||||
on two lines</p></div>
|
||||
_Markdown_
|
||||
|
||||
**Markdown**
|
Loading…
Reference in New Issue
Block a user