1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Merge pull request #598 from aidantwoods/enhancement/set-literal-breaks

Add literalBreaks support
This commit is contained in:
Aidan Woods
2018-04-06 15:06:45 +01:00
committed by GitHub
4 changed files with 32 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class ParsedownTest extends TestCase
$this->Parsedown->setSafeMode(substr($test, 0, 3) === 'xss');
$this->Parsedown->setStrictMode(substr($test, 0, 6) === 'strict');
$this->Parsedown->setLiteralBreaks(substr($test, 0, 14) === 'literal_breaks');
$actualMarkup = $this->Parsedown->text($markdown);

View File

@@ -0,0 +1,6 @@
<p>first line
<br />
<br />
<br />
<br />
sixth line</p>

View File

@@ -0,0 +1,6 @@
first line
sixth line