mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-02 19:32:35 +02:00
Remove setLiteralBreaks
This commit is contained in:
@@ -65,15 +65,6 @@ class Parsedown
|
||||
|
||||
protected $breaksEnabled;
|
||||
|
||||
function setLiteralBreaks($literalBreaks)
|
||||
{
|
||||
$this->literalBreaks = $literalBreaks;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected $literalBreaks;
|
||||
|
||||
function setMarkupEscaped($markupEscaped)
|
||||
{
|
||||
$this->markupEscaped = $markupEscaped;
|
||||
@@ -179,7 +170,7 @@ class Parsedown
|
||||
|
||||
foreach ($lines as $line)
|
||||
{
|
||||
if ( ! $this->literalBreaks and chop($line) === '')
|
||||
if (chop($line) === '')
|
||||
{
|
||||
if (isset($CurrentBlock))
|
||||
{
|
||||
@@ -244,15 +235,7 @@ class Parsedown
|
||||
|
||||
# ~
|
||||
|
||||
if (isset($text[0]))
|
||||
{
|
||||
$marker = $text[0];
|
||||
}
|
||||
elseif ($this->literalBreaks)
|
||||
{
|
||||
$marker = '\n';
|
||||
$text = ' ';
|
||||
}
|
||||
$marker = $text[0];
|
||||
|
||||
# ~
|
||||
|
||||
|
Reference in New Issue
Block a user