mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-19 19:41:29 +02:00
correct spelling of $link_definition
This commit is contained in:
parent
5dd40e7adf
commit
6a0695deb9
@ -526,15 +526,15 @@ class Parsedown
|
|||||||
{
|
{
|
||||||
foreach ($matches as $matches)
|
foreach ($matches as $matches)
|
||||||
{
|
{
|
||||||
$link_difinition = isset($matches[3]) && $matches[3]
|
$link_definition = isset($matches[3]) && $matches[3]
|
||||||
? $matches[3]
|
? $matches[3]
|
||||||
: $matches[2]; # implicit
|
: $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
|
if ($matches[1]) # image
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user