doc .= ' title="'.$renderer->_xmlEntities($output[0]).'"';
}
if(!empty($output[1])){
$renderer->doc .= ' cite="'.$renderer->_xmlEntities($output[1]).'"';
}
if(!empty($output[2])){
$renderer->doc .= ' datetime="'.$renderer->_xmlEntities($output[2]).'"';
}
$renderer->doc .= '>'.DOKU_LF;
break;
case DOKU_LEXER_EXIT:
$renderer->doc .= DOKU_LF."
".DOKU_LF;
break;
case DOKU_LEXER_UNMATCHED:
$renderer->doc .= $renderer->_xmlEntities($output);
break;
}
return true;
} elseif ($format == 'metadata') {
switch ($state) {
case DOKU_LEXER_ENTER:
$sp = '';
$line = '';
if(!empty($output[0])){
$line .= '['.$output[0].']';
$sp = ' ';
}
if(!empty($output[1])){
$line .= $sp.$output[1];
$sp = ' ';
}
if(!empty($output[2])){
$line .= $sp.$output[2];
}
if ($renderer->capture)
$renderer->doc .= $line;
break;
case DOKU_LEXER_EXIT:
if ($renderer->capture) {
$renderer->doc .= DOKU_LF;
if (strlen($renderer->doc) > 250) $renderer->capture = false;
}
break;
case DOKU_LEXER_UNMATCHED:
if ($renderer->capture) $renderer->doc .= $output;
break;
}
return true;
}
return false;
}
}