mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
parser: make internal link syntax non-greedy. Why the heck was it working before?
I guess we'll never know......
This commit is contained in:
parent
48567a96a8
commit
c4d0cc42d7
1 changed files with 1 additions and 1 deletions
|
@ -918,7 +918,7 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
{
|
{
|
||||||
global $pageindex, $env;
|
global $pageindex, $env;
|
||||||
|
|
||||||
if(preg_match('/^\[\[([^\]]*)\]\]([^\s!?",;.()\[\]{}*=+\/]*)/u', $fragment["text"], $matches) === 1) {
|
if(preg_match('/^\[\[([^\]]*?)\]\]([^\s!?",;.()\[\]{}*=+\/]*)/u', $fragment["text"], $matches) === 1) {
|
||||||
// 1: Parse parameters out
|
// 1: Parse parameters out
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
$link_page = str_replace(["\r", "\n"], [" ", " "], trim($matches[1]));
|
$link_page = str_replace(["\r", "\n"], [" ", " "], trim($matches[1]));
|
||||||
|
|
Loading…
Reference in a new issue