$render = ($this->mOutputType == OT_HTML);
$nowiki_content = array();
$hiero_content = array();
+ $timeline_content = array();
$math_content = array();
$pre_content = array();
$comment_content = array();
$hiero_content[$marker] = "<hiero>$content</hiero>";
}
}
+
+ $text = Parser::extractTags("timeline", $text, $timeline_content, $uniq_prefix);
+ foreach( $timeline_content as $marker => $content ){
+ if( $render && $GLOBALS['wgUseTimeline']){
+ $timeline_content[$marker] = renderTimeline( $content );
+ } else {
+ $timeline_content[$marker] = "<timeline>$content</timeline>";
+ }
+ }
$text = Parser::extractTags("math", $text, $math_content, $uniq_prefix);
foreach( $math_content as $marker => $content ){
if ( $state ) {
$state['nowiki'] = $state['nowiki'] + $nowiki_content;
$state['hiero'] = $state['hiero'] + $hiero_content;
+ $state['timeline'] = $state['timeline'] + $timeline_content;
$state['math'] = $state['math'] + $math_content;
$state['pre'] = $state['pre'] + $pre_content;
$state['comment'] = $state['comment'] + $comment_content;
$state = array(
'nowiki' => $nowiki_content,
'hiero' => $hiero_content,
+ 'timeline' => $timeline_content,
'math' => $math_content,
'pre' => $pre_content,
'comment' => $comment_content