Source for file Subscript.php
Documentation is available at Subscript.php
* Parses for italic text.
* This class implements a Text_Wiki_Parse to find source text marked for
* superscript as defined by text surrounded by two '^'.
* On parsing, the text itself is left in place, but the starting and ending
* instances of two '^' are replaced with tokens.
* @author Paul M. Jones <pmjones@php.net>
* @author Michele Tomaiuolo <tomamic@yahoo.it>
* The regular expression used to parse the source text and find
* matches conforming to this rule. Used by the parse() method.
var $regex = "/\,\,(.*?)\,\,/";
* Generates a replacement for the matched text. Token options are:
* 'type' => ['start'|'end'] The starting or ending point of the
* superscript text. The text itself is left in the source.
* @param array &$matches The array of matches from parse().
* @return string A pair of delimited tokens to be used as a
* placeholder in the source text surrounding the text to be
if (! $this->wiki->checkInnerTags ($matches[1 ])) {
$start = $this->wiki->addToken (
$end = $this->wiki->addToken (
return $start . $matches[1 ] . $end;
Documentation generated on Mon, 11 Mar 2019 15:40:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|