mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Substr over indexing string
This commit is contained in:
@@ -27,7 +27,7 @@ final class Rule implements Block
|
||||
return null;
|
||||
}
|
||||
|
||||
$marker = $Context->line()->text()[0];
|
||||
$marker = \substr($Context->line()->text(), 0, 1);
|
||||
|
||||
if (
|
||||
\substr_count($Context->line()->text(), $marker) >= 3
|
||||
|
||||
Reference in New Issue
Block a user