mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Make it clearer this is one backslash character
This commit is contained in:
parent
74bba0b2fa
commit
51c3d9d445
@ -57,7 +57,7 @@ final class PlainText implements Inline
|
||||
|
||||
$text = \preg_replace('/(?<![ \t])[ ]\n/', "$1\n", $text);
|
||||
|
||||
while (\preg_match('/(?:[ ]*+\\\\|[ ]{2,}+)\n/', $text, $matches, \PREG_OFFSET_CAPTURE)) {
|
||||
while (\preg_match('/(?:[ ]*+[\\\]|[ ]{2,}+)\n/', $text, $matches, \PREG_OFFSET_CAPTURE)) {
|
||||
$offset = \intval($matches[0][1]);
|
||||
$before = \substr($text, 0, $offset);
|
||||
$after = \substr($text, $offset + \strlen($matches[0][0]));
|
||||
|
Loading…
Reference in New Issue
Block a user