mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Ensure line-breaks get standardised when using via line
method
As noted in https://github.com/erusev/parsedown/pull/624 there are occasions where line break standardisation is assumed (e.g. where `inlineCode` replaces line breaks with a space). Closes #624
This commit is contained in:
parent
c26a2ee4bf
commit
89c3fa05d9
@ -1119,6 +1119,9 @@ class Parsedown
|
||||
|
||||
protected function lineElements($text, $nonNestables = array())
|
||||
{
|
||||
# standardize line breaks
|
||||
$text = str_replace(array("\r\n", "\r"), "\n", $text);
|
||||
|
||||
$Elements = array();
|
||||
|
||||
$nonNestables = (empty($nonNestables)
|
||||
|
Loading…
Reference in New Issue
Block a user