mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
Minor fixes
This commit is contained in:
parent
79d924040a
commit
409fbe966f
@ -653,7 +653,7 @@ class Parsedown
|
||||
|
||||
protected function blockSetextHeader($Line, array $Block = null)
|
||||
{
|
||||
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
||||
if ( ! isset($Block) || isset($Block['type']) || isset($Block['interrupted']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1212,7 +1212,7 @@ class Parsedown
|
||||
|
||||
protected function inlineTag($excerpt)
|
||||
{
|
||||
if ($this->markupEscaped or strpos($excerpt, '>') === false)
|
||||
if ($this->markupEscaped === false || strpos($excerpt, '>') === false)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1256,7 +1256,7 @@ class Parsedown
|
||||
|
||||
protected function inlineImage($excerpt)
|
||||
{
|
||||
if ( ! isset($excerpt[1]) or $excerpt[1] !== '[')
|
||||
if ( ! isset($excerpt[1]) || $excerpt[1] !== '[')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user