mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
labels of reference links should be case insensitive
This commit is contained in:
@@ -283,7 +283,7 @@ class Parsedown
|
||||
|
||||
if ($pure_line[0] === '[' and preg_match('/^\[(.+?)\]:[ ]*([^ ]+)/', $pure_line, $matches))
|
||||
{
|
||||
$label = $matches[1];
|
||||
$label = strtolower($matches[1]);
|
||||
$url = trim($matches[2], '<>');
|
||||
|
||||
$this->reference_map[$label] = $url;
|
||||
|
Reference in New Issue
Block a user