Lexer->addSpecialPattern('\]*\>',$mode,'plugin_dirtylittlehelper_'.$this->getPluginComponent()); $this->Lexer->addSpecialPattern('\<\/dlh\.div\.wiki\>',$mode,'plugin_dirtylittlehelper_'.$this->getPluginComponent()); } /** * Handle matches of the DLH syntax * * @param string $match The match of the syntax * @param int $state The state of the handler * @param int $pos The position in the document * @param Doku_Handler $handler The handler * * @return array Data for the renderer */ public function handle($match, $state, $pos, Doku_Handler $handler) { if( substr($match,0,3) =='doc .= str_replace('doc .= ""; return true; } return false; } //mode xhtml return false; } //function render } //class