Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function render($mode, Doku_Renderer $renderer, $data) {

// remove toc, section edit buttons and category tags
$patterns = array('!<div class="toc">.*?(</div>\n</div>)!s',
'#<!-- SECTION \[(\d*-\d*)\] -->#e',
'#<!-- SECTION \[(\d*-\d*)\] -->#',
'!<div class="category">.*?</div>!s');
$replace = array('','','');
$alpha_data = preg_replace($patterns, $replace, $alpha_data);
Expand Down Expand Up @@ -338,6 +338,6 @@ function alphaindex_search_index(&$data, $base, $file, $type, $lvl, $opts) {
'type' => $type,
'level' => $lvl,
'open' => $return);

return $return;
}
}