Handle space in markdown link http ref section

This commit is contained in:
Leonard Smith 2021-05-27 08:33:40 -05:00
parent 79ecb2d8b0
commit 60b3e45fdf
1 changed files with 1 additions and 1 deletions

View File

@ -83,6 +83,6 @@ class CommentaryController extends Controller
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);
}
}