Lexer->addEntryPattern('#;;(?=.+\n#;;)', $mode,'plugin_divalign2_left'); } function postConnect() { $this->Lexer->addExitPattern('\n#;;', 'plugin_divalign2_left'); } function handle($match, $state, $pos, Doku_Handler $handler){ $align= 'left'; $content= $match; $match= array ('content' => $content, 'align'=>$align); parent::handle($match, $state, $pos, $handler); return array($align,$state,$pos); } }