Parsedown update, introducing responsive images
This commit is contained in:
parent
02aadf1fdb
commit
b4bc586b3c
|
@ -515,6 +515,16 @@ class Parsedown
|
|||
),
|
||||
);
|
||||
|
||||
if($name === 'ol')
|
||||
{
|
||||
$listStart = stristr($matches[0], '.', true);
|
||||
|
||||
if($listStart !== '1')
|
||||
{
|
||||
$Block['element']['attributes'] = array('start' => $listStart);
|
||||
}
|
||||
}
|
||||
|
||||
$Block['li'] = array(
|
||||
'name' => 'li',
|
||||
'handler' => 'li',
|
||||
|
@ -1170,6 +1180,7 @@ class Parsedown
|
|||
'attributes' => array(
|
||||
'src' => $Link['element']['attributes']['href'],
|
||||
'alt' => $Link['element']['text'],
|
||||
'class' => 'img-responsive'
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue