diff --git a/Parsedown.php b/Parsedown.php index 86f1e80..15c5c9c 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -1370,7 +1370,7 @@ class Parsedown { if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) { - $definition = $matches[1] ?: $Element['text']; + $definition = $matches[1] ? $matches[1] : $Element['text']; $definition = strtolower($definition); $extent += strlen($matches[0]);