mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
update variable names to match updated member names
This commit is contained in:
parent
b5efe98e2f
commit
19bc6a7083
@ -1074,13 +1074,13 @@ class Parsedown
|
|||||||
|
|
||||||
$markerPosition += strpos($remainder, $marker);
|
$markerPosition += strpos($remainder, $marker);
|
||||||
|
|
||||||
foreach ($this->InlineTypes[$marker] as $spanType)
|
foreach ($this->InlineTypes[$marker] as $inlineType)
|
||||||
{
|
{
|
||||||
$handler = 'inline'.$spanType;
|
$handler = 'inline'.$inlineType;
|
||||||
|
|
||||||
$Span = $this->$handler($excerpt);
|
$Inline = $this->$handler($excerpt);
|
||||||
|
|
||||||
if ( ! isset($Span))
|
if ( ! isset($Inline))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1089,9 +1089,9 @@ class Parsedown
|
|||||||
|
|
||||||
$markup .= $this->readUnmarkedText($plainText);
|
$markup .= $this->readUnmarkedText($plainText);
|
||||||
|
|
||||||
$markup .= isset($Span['markup']) ? $Span['markup'] : $this->element($Span['element']);
|
$markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']);
|
||||||
|
|
||||||
$text = substr($text, $markerPosition + $Span['extent']);
|
$text = substr($text, $markerPosition + $Inline['extent']);
|
||||||
|
|
||||||
$remainder = $text;
|
$remainder = $text;
|
||||||
|
|
||||||
@ -1268,25 +1268,25 @@ class Parsedown
|
|||||||
|
|
||||||
$excerpt = substr($excerpt, 1);
|
$excerpt = substr($excerpt, 1);
|
||||||
|
|
||||||
$Span = $this->inlineLink($excerpt);
|
$Inline = $this->inlineLink($excerpt);
|
||||||
|
|
||||||
if ($Span === null)
|
if ($Inline === null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$Span['extent'] ++;
|
$Inline['extent'] ++;
|
||||||
|
|
||||||
$Span['element'] = array(
|
$Inline['element'] = array(
|
||||||
'name' => 'img',
|
'name' => 'img',
|
||||||
'attributes' => array(
|
'attributes' => array(
|
||||||
'src' => $Span['element']['attributes']['href'],
|
'src' => $Inline['element']['attributes']['href'],
|
||||||
'alt' => $Span['element']['text'],
|
'alt' => $Inline['element']['text'],
|
||||||
'title' => $Span['element']['attributes']['title'],
|
'title' => $Inline['element']['attributes']['title'],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return $Span;
|
return $Inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function inlineLink($excerpt)
|
protected function inlineLink($excerpt)
|
||||||
|
Loading…
Reference in New Issue
Block a user