e0f8f1e0cf5501c69cf9eed8c9904ab006043399
5 * Parses for text marked as "raw" (i.e., to be rendered as-is).
11 * @author Paul M. Jones <pmjones@php.net>
15 * @version $Id: Raw.php,v 1.3 2005/02/23 17:38:29 pmjones Exp $
21 * Parses for text marked as "raw" (i.e., to be rendered as-is).
23 * This class implements a Text_Wiki rule to find sections of the source
24 * text that are not to be processed by Text_Wiki. These blocks of "raw"
25 * text will be rendered as they were found.
31 * @author Paul M. Jones <pmjones@php.net>
35 class Text_Wiki_Parse_Raw
extends Text_Wiki_Parse
{
40 * The regular expression used to find source text matching this
49 var $regex = "/``(.*)``/U";
54 * Generates a token entry for the matched text. Token options are:
56 * 'text' => The full matched text.
60 * @param array &$matches The array of matches from parse().
62 * @return A delimited token number to be used as a placeholder in
67 function process(&$matches)
69 $options = array('text' => $matches[1]);
70 return $this->wiki
->addToken($this->rule
, $options);