register_hook('RENDERER_CONTENT_POSTPROCESS', 'BEFORE', $this, '_renderer_content_postprocess'); } function _renderer_content_postprocess(&$event, $param) { if ($_GET['do'] !== 'export_revealjs' && $this->getConf('revealjs_active')) { /* close last edit section correctly (missing ), because we close sections only when a new one is opened - and this logic fails for the last section in the document */ $search = '