mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 03:42:38 +02:00
In theory PHP stores the length of strings, so looking this up should be quick
This commit is contained in:
@@ -1102,7 +1102,7 @@ class Parsedown
|
||||
{
|
||||
$marker = $excerpt[0];
|
||||
|
||||
$markerPosition = strpos($text, $marker);
|
||||
$markerPosition = strlen($text) - strlen($excerpt);
|
||||
|
||||
$Excerpt = array('text' => $excerpt, 'context' => $text);
|
||||
|
||||
|
Reference in New Issue
Block a user