Parsedown update, introducing responsive images

This commit is contained in:
Wruczek 2016-10-25 19:47:49 +02:00
parent 02aadf1fdb
commit b4bc586b3c
1 changed files with 11 additions and 0 deletions

View File

@ -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'
),
),
);