diff options
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index fde538515..58eed0c34 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -11,6 +11,9 @@ class Doku_Handler { var $status = array( 'section' => FALSE, + 'section_edit_start' => -1, + 'section_edit_level' => 1, + 'section_edit_title' => '' ); var $rewriteBlocks = TRUE; @@ -29,6 +32,8 @@ class Doku_Handler { if ( $this->status['section'] ) { $last_call = end($this->calls); array_push($this->calls,array('section_close',array(), $last_call[2])); + array_push($this->calls,array('section_edit',array($this->status['section_edit_start'], 0, + $this->status['section_edit_level'], $this->status['section_edit_title']), $last_call[2])); } if ( $this->rewriteBlocks ) { @@ -90,6 +95,11 @@ class Doku_Handler { if ($this->status['section']) $this->_addCall('section_close',array(),$pos); + $this->_addCall('section_edit',array($this->status['section_edit_start'], $pos-1, $this->status['section_edit_level'], $this->status['section_edit_title']), $pos); + $this->status['section_edit_start'] = $pos; + $this->status['section_edit_level'] = $level; + $this->status['section_edit_title'] = $title; + $this->_addCall('header',array($title,$level,$pos), $pos); $this->_addCall('section_open',array($level),$pos); |