1
0
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:
Daniel Berthereau 2017-06-19 00:00:00 +02:00
parent 728952b90a
commit be963a6531
13 changed files with 50 additions and 1 deletions

View File

@ -10,7 +10,8 @@ class ParsedownTest extends PHPUnit_Framework_TestCase
parent::__construct($name, $data, $dataName);
}
private $dirs, $Parsedown;
private $dirs;
protected $Parsedown;
/**
* @return array

View 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>

View File

@ -0,0 +1,4 @@
<div>Markup</div>
_No markdown_ without blank line if strict compliance, but **main** processors convert it.
**Markdown**

View File

@ -0,0 +1,4 @@
<div>One markup on
two lines</div>
<p><em>Markdown</em></p>
<p><strong>Markdown</strong></p>

View File

@ -0,0 +1,5 @@
<div>One markup on
two lines</div>
_Markdown_
**Markdown**

View File

@ -0,0 +1,3 @@
<div><p>Stripped markup</p></div>
<p><em>Markdown</em></p>
<p><strong>Markdown</strong></p>

View File

@ -0,0 +1,4 @@
<div><p>Stripped markup</p></div>
_Markdown_
**Markdown**

View 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>

View File

@ -0,0 +1,4 @@
<div>First markup</div><p>and second markup on the same line.</p>
_Markdown_
**Markdown**

View 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>

View File

@ -0,0 +1,5 @@
<div>First markup</div><p>and partial markup
on two lines.</p>
_Markdown_
**Markdown**

View File

@ -0,0 +1,4 @@
<div><p>Stripped markup
on two lines</p></div>
<p><em>Markdown</em></p>
<p><strong>Markdown</strong></p>

View File

@ -0,0 +1,5 @@
<div><p>Stripped markup
on two lines</p></div>
_Markdown_
**Markdown**