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

simplify compiling of links

This commit is contained in:
Emanuil Rusev 2014-01-20 22:49:10 +02:00
parent 325bdd9ff6
commit 7cb9646d98

View File

@ -795,9 +795,11 @@ class Parsedown
{
$element['a'] = $this->parse_span_elements($element['a'], $markers);
$markup .= isset($element['#'])
? '<a href="'.$element['»'].'" title="'.$element['#'].'">'.$element['a'].'</a>'
: '<a href="'.$element['»'].'">'.$element['a'].'</a>';
$markup .= '<a href="'.$element['»'].'"';
isset($element['#']) and $markup .= ' title="'.$element['#'].'"';
$markup .= '>'.$element['a'].'</a>';
}
unset($element);