mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
remove unnecessary comments
This commit is contained in:
parent
0c9a4af8ab
commit
1bb65457ed
@ -134,7 +134,7 @@ class Parsedown
|
|||||||
|
|
||||||
$Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
|
$Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
|
||||||
|
|
||||||
# Multiline block types define "addTo" methods.
|
# ~
|
||||||
|
|
||||||
if (isset($CurrentBlock['incomplete']))
|
if (isset($CurrentBlock['incomplete']))
|
||||||
{
|
{
|
||||||
@ -161,8 +161,6 @@ class Parsedown
|
|||||||
|
|
||||||
$marker = $text[0];
|
$marker = $text[0];
|
||||||
|
|
||||||
# Definitions
|
|
||||||
|
|
||||||
if (isset($this->Definition[$marker]))
|
if (isset($this->Definition[$marker]))
|
||||||
{
|
{
|
||||||
foreach ($this->Definition[$marker] as $definitionType)
|
foreach ($this->Definition[$marker] as $definitionType)
|
||||||
@ -195,23 +193,19 @@ class Parsedown
|
|||||||
|
|
||||||
foreach ($blockTypes as $blockType)
|
foreach ($blockTypes as $blockType)
|
||||||
{
|
{
|
||||||
# Block types define "identify" methods.
|
|
||||||
|
|
||||||
$Block = $this->{'identify'.$blockType}($Line, $CurrentBlock);
|
$Block = $this->{'identify'.$blockType}($Line, $CurrentBlock);
|
||||||
|
|
||||||
if (isset($Block))
|
if (isset($Block))
|
||||||
{
|
{
|
||||||
$Block['type'] = $blockType;
|
$Block['type'] = $blockType;
|
||||||
|
|
||||||
if ( ! isset($Block['identified'])) # »
|
if ( ! isset($Block['identified']))
|
||||||
{
|
{
|
||||||
$Elements []= $CurrentBlock['element'];
|
$Elements []= $CurrentBlock['element'];
|
||||||
|
|
||||||
$Block['identified'] = true;
|
$Block['identified'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Multiline block types define "addTo" methods.
|
|
||||||
|
|
||||||
if (method_exists($this, 'addTo'.$blockType))
|
if (method_exists($this, 'addTo'.$blockType))
|
||||||
{
|
{
|
||||||
$Block['incomplete'] = true;
|
$Block['incomplete'] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user