Parsedown update, introducing responsive images

pull/13/head
Wruczek 8 years ago
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( $Block['li'] = array(
'name' => 'li', 'name' => 'li',
'handler' => 'li', 'handler' => 'li',
@ -1170,6 +1180,7 @@ class Parsedown
'attributes' => array( 'attributes' => array(
'src' => $Link['element']['attributes']['href'], 'src' => $Link['element']['attributes']['href'],
'alt' => $Link['element']['text'], 'alt' => $Link['element']['text'],
'class' => 'img-responsive'
), ),
), ),
); );

Loading…
Cancel
Save