From 08b16661f37c2da62f06f68c81d34e20434db6a5 Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Sun, 7 Dec 2014 17:16:32 +0100 Subject: [PATCH] check for no_markup flag --- Michelf/Markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index f31361c..0763f80 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -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;