check for no_markup flag

This commit is contained in:
Peter Droogmans 2014-12-07 17:16:32 +01:00
parent bda98d1c33
commit 08b16661f3

View file

@ -1718,7 +1718,7 @@ abstract class _MarkdownExtra_TmpImpl extends \Michelf\Markdown {
if (!empty($classes)) {
$attr_str .= ' class="'.implode(" ", $classes).'"';
}
if (!empty($attributes)) {
if (!$this->no_markup && !empty($attributes)) {
$attr_str .= ' '.implode(" ", $attributes);
}
return $attr_str;