mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
Text variable isn't very useful inside the loop
This commit is contained in:
parent
14b3761687
commit
714ae50211
@ -284,8 +284,7 @@ final class Parsedown
|
|||||||
$Excerpt->text() !== '';
|
$Excerpt->text() !== '';
|
||||||
$Excerpt = $Excerpt->pushingOffsetTo($this->inlineMarkerList)
|
$Excerpt = $Excerpt->pushingOffsetTo($this->inlineMarkerList)
|
||||||
) {
|
) {
|
||||||
$text = $Excerpt->text();
|
$marker = \substr($Excerpt->text(), 0, 1);
|
||||||
$marker = $text[0];
|
|
||||||
|
|
||||||
foreach ($this->InlineTypes[$marker] as $inlineType) {
|
foreach ($this->InlineTypes[$marker] as $inlineType) {
|
||||||
# check to see if the current inline type is nestable in the current context
|
# check to see if the current inline type is nestable in the current context
|
||||||
@ -330,7 +329,6 @@ final class Parsedown
|
|||||||
|
|
||||||
$Inlines[] = Plaintext::build($Excerpt->choppingUpToOffset($startPosition + 1));
|
$Inlines[] = Plaintext::build($Excerpt->choppingUpToOffset($startPosition + 1));
|
||||||
|
|
||||||
$text = \substr($Excerpt->text(), $startPosition + 1);
|
|
||||||
/** @psalm-suppress LoopInvalidation */
|
/** @psalm-suppress LoopInvalidation */
|
||||||
$Excerpt = $Excerpt->choppingFromOffset($startPosition + 1);
|
$Excerpt = $Excerpt->choppingFromOffset($startPosition + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user