3
require_once 'Text/reST.php';
4
require_once 'Text/reST/Formatter.php';
7
* The Text_Filter_rst:: class converts reStructuredText to HTML.
9
* $Horde: framework/Text_Filter/Filter/rst.php,v 1.9.10.2 2005/01/11 20:44:48 chuck Exp $
11
* Copyright 2003-2005 Jason M. Felice <jfelice@cronosys.com>
13
* See the enclosed file COPYING for license information (LGPL). If you did not
14
* receive this file, see http://www.fsf.org/copyleft/lgpl.html.
16
* @author Jason M. Felice <jfelice@cronosys.com>
19
class Text_Filter_rst extends Text_Filter {
22
* Executes any code necessaray after applying the filter
25
* @param string $text The text after the filtering.
27
* @return string The modified text.
29
function postProcess($text)
31
$document = &Text_reST::parse($text);
32
$formatter = &Text_reST_Formatter::factory('html');
33
return $formatter->format($document, NLS::getCharset());