Bugfix: Replace newline characters in internal links with spaces - fixes #186

This commit is contained in:
Starbeamrainbowlabs 2020-04-21 15:00:54 +01:00
parent ed9b6cfa51
commit f6a7495ce5
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ class PeppermintParsedown extends ParsedownExtreme
if(preg_match('/^\[\[([^\]]*)\]\]([^\s!?",;.()\[\]{}*=+\/]*)/u', $fragment["text"], $matches) === 1) {
// 1: Parse parameters out
// -------------------------------
$link_page = trim($matches[1]);
$link_page = str_replace(["\r", "\n"], [" ", " "], trim($matches[1]));
$display = $link_page . trim($matches[2]);
if(strpos($matches[1], "|") !== false || strpos($matches[1], "¦") !== false)
{