mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Bugfix: Replace newline characters in internal links with spaces - fixes #186
This commit is contained in:
parent
ed9b6cfa51
commit
f6a7495ce5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue