BlockTypes['>']);
$this->InlineTypes['>'] = ['Greentext'];
array_unshift($this->InlineTypes['<'], 'Redtext');
$this->InlineTypes['@'] = ['Purpletext'];
}
protected function inlineGreentext($Line)
{
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "" . pp_html_escape($matches[0]) . "",
'extent' => strlen($matches[0])
);
return $Block;
}
}
protected function inlineRedtext($Line)
{
if (preg_match('/^<[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "" . pp_html_escape($matches[0]) . "",
'extent' => strlen($matches[0])
);
return $Block;
}
}
protected function inlinePurpletext($Line)
{
if (preg_match('/^@[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "" . pp_html_escape($matches[0]) . "",
'extent' => strlen($matches[0])
);
return $Block;
}
}
}