@@ -95,7 +95,7 @@ |
||
95 | 95 | // https://regex101.com/r/dZ02zO/5 |
96 | 96 | $this->rendered = preg_replace_callback( |
97 | 97 | '/href="([A-Za-z0-9_\.\-\/]+)\.md(\#[A-Za-z0-9\-]+)?"/is', |
98 | - function ($matches) { |
|
98 | + function($matches) { |
|
99 | 99 | return \sprintf('href="../%s%s/"', Page::slugify(PrefixSuffix::sub($matches[1])), $matches[2] ?? ''); |
100 | 100 | }, |
101 | 101 | $this->rendered |