Fixed issue 158, improved MarkDown support.

This commit is contained in:
Mehdi Kabab 2009-03-26 12:23:37 +01:00 committed by Loic d'Anterroches
parent 0f39236883
commit dd2dda1895

View File

@ -91,6 +91,7 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter
public $allowed = array( public $allowed = array(
'a' => array('href', 'title', 'rel'), 'a' => array('href', 'title', 'rel'),
'abbr' => array('title'),
'address' => array(), 'address' => array(),
'b' => array(), 'b' => array(),
'blockquote' => array(), 'blockquote' => array(),
@ -102,9 +103,12 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter
'dl' => array(), 'dl' => array(),
'dt' => array(), 'dt' => array(),
'em' => array(), 'em' => array(),
'h1' => array(), 'h1' => array('id'),
'h2' => array(), 'h2' => array('id'),
'h3' => array(), 'h3' => array('id'),
'h4' => array('id'),
'h5' => array('id'),
'h6' => array('id'),
'hr' => array(), 'hr' => array(),
'i' => array(), 'i' => array(),
'img' => array('src', 'class', 'alt', 'height', 'width', 'style'), 'img' => array('src', 'class', 'alt', 'height', 'width', 'style'),