1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

correct spelling of $link_definition

This commit is contained in:
Emanuil Rusev 2013-10-13 22:52:36 +03:00
parent 5dd40e7adf
commit 6a0695deb9

View File

@ -526,15 +526,15 @@ class Parsedown
{
foreach ($matches as $matches)
{
$link_difinition = isset($matches[3]) && $matches[3]
$link_definition = isset($matches[3]) && $matches[3]
? $matches[3]
: $matches[2]; # implicit
$link_difinition = strtolower($link_difinition);
$link_definition = strtolower($link_definition);
if (isset($this->reference_map[$link_difinition]))
if (isset($this->reference_map[$link_definition]))
{
$url = $this->reference_map[$link_difinition];
$url = $this->reference_map[$link_definition];
if ($matches[1]) # image
{