This commit is contained in:
Emanuil Rusev 2014-01-20 22:19:23 +02:00
parent 4e83d79d76
commit 2a0700abda
3 changed files with 7 additions and 1 deletions

View File

@ -785,7 +785,11 @@ class Parsedown
if ($element['!'])
{
$markup .= '<img alt="'.$element['a'].'" src="'.$element['»'].'" />';
$markup .= '<img alt="'.$element['a'].'" src="'.$element['»'].'"';
isset($element['#']) and $markup .= ' title="'.$element['#'].'"';
$markup .= ' />';
}
else
{

View File

@ -0,0 +1 @@
<p><img alt="alt" src="/md.png" title="title" /></p>

1
tests/data/1390249049.md Normal file
View File

@ -0,0 +1 @@
![alt](/md.png "title")