diff --git a/src/IDF/Template/MarkdownPrefilter.php b/src/IDF/Template/MarkdownPrefilter.php index 4b2e9d9..114369a 100644 --- a/src/IDF/Template/MarkdownPrefilter.php +++ b/src/IDF/Template/MarkdownPrefilter.php @@ -90,32 +90,33 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter ); public $allowed = array( - 'img' => array('src', 'class', 'alt', 'height', 'width', 'style'), - 'strong' => array(), - 'em' => array(), + 'a' => array('href', 'title', 'rel'), + 'address' => array(), 'b' => array(), - 'i' => array(), - 'ul' => array(), - 'ol' => array(), - 'li' => array(), - 'dl' => array(), - 'dt' => array(), - 'dd' => array(), - 'p' => array('align', 'class'), - 'div' => array('align', 'class'), + 'blockquote' => array(), 'br' => array(), - 'pre' => array(), - 'table' => array('summary'), 'caption' => array(), - 'tr' => array(), - 'td' => array('style'), + 'code' => array(), + 'dd' => array(), + 'div' => array('align', 'class'), + 'dl' => array(), + 'dt' => array(), + 'em' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'hr' => array(), - 'address' => array(), - 'a' => array('href', 'title', 'rel'), - 'blockquote' => array(), + 'i' => array(), + 'img' => array('src', 'class', 'alt', 'height', 'width', 'style'), + 'li' => array(), + 'ol' => array(), + 'p' => array('align', 'class'), + 'pre' => array(), + 'strong' => array(), + 'table' => array('summary'), + 'td' => array('style'), + 'tr' => array(), + 'ul' => array(), ); // tags which should always be self-closing (e.g. "") public $no_close = array( @@ -130,6 +131,7 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter 'strong', 'em', 'b', + 'code', 'i', 'ul', 'ol',