mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
error when last line consists of 1-3 spaces
This commit is contained in:
parent
b12973415f
commit
ecf86b073e
@ -78,7 +78,7 @@ class Parsedown
|
||||
# ~
|
||||
|
||||
$text = preg_replace('/\n\s*\n/', "\n\n", $text);
|
||||
$text = trim($text, "\n");
|
||||
$text = trim($text, "\n ");
|
||||
|
||||
$lines = explode("\n", $text);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user