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:
parent
325bdd9ff6
commit
7cb9646d98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user