Handle space in markdown link http ref section
This commit is contained in:
parent
79ecb2d8b0
commit
60b3e45fdf
|
@ -83,6 +83,6 @@ class CommentaryController extends Controller
|
||||||
|
|
||||||
private function fixRelativeUrlPaths($markdown) : string
|
private function fixRelativeUrlPaths($markdown) : string
|
||||||
{
|
{
|
||||||
return preg_replace("#\[(.*?)\]\(../articles/([a-zA-Z]*)\.md\)#", "[$1](/commentary/articles/$2)", $markdown);
|
return preg_replace("#\[(.*?)\]\([ \t]*../articles/([a-zA-Z]*)\.md[ \t]*\)#", "[$1](/commentary/articles/$2)", $markdown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue