From dd2dda1895d90df9a306d408f61f64fe929b09c8 Mon Sep 17 00:00:00 2001 From: Mehdi Kabab Date: Thu, 26 Mar 2009 12:23:37 +0100 Subject: [PATCH] Fixed issue 158, improved MarkDown support. --- src/IDF/Template/MarkdownPrefilter.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/IDF/Template/MarkdownPrefilter.php b/src/IDF/Template/MarkdownPrefilter.php index 114369a..b3d0c32 100644 --- a/src/IDF/Template/MarkdownPrefilter.php +++ b/src/IDF/Template/MarkdownPrefilter.php @@ -91,6 +91,7 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter public $allowed = array( 'a' => array('href', 'title', 'rel'), + 'abbr' => array('title'), 'address' => array(), 'b' => array(), 'blockquote' => array(), @@ -102,9 +103,12 @@ class IDF_Template_MarkdownPrefilter extends Pluf_Text_HTML_Filter 'dl' => array(), 'dt' => array(), 'em' => array(), - 'h1' => array(), - 'h2' => array(), - 'h3' => array(), + 'h1' => array('id'), + 'h2' => array('id'), + 'h3' => array('id'), + 'h4' => array('id'), + 'h5' => array('id'), + 'h6' => array('id'), 'hr' => array(), 'i' => array(), 'img' => array('src', 'class', 'alt', 'height', 'width', 'style'),