Index: /documentation/trunk/wiki/plugins/simpletabs/syntax.php
===================================================================
--- /documentation/trunk/wiki/plugins/simpletabs/syntax.php (revision 30311)
+++ /documentation/trunk/wiki/plugins/simpletabs/syntax.php (revision 30312)
@@ -133,4 +133,6 @@
$this->Lexer->addPattern('', 'plugin_simpletabs');
$this->Lexer->addPattern('', 'plugin_simpletabs');
+ // Hide comments always (sometimes used as separator)
+ $this->Lexer->addPattern('', 'plugin_simpletabs');
// Special things inside the content we want to manually handle.
$this->Lexer->addPattern( '^[ \t]*={2,6}\s?[^\n]+={2,6}[ \t]*(?=\n)', 'plugin_simpletabs');
@@ -230,4 +232,12 @@
'bytepos' => $pos + strlen($match)));
}
+ if (preg_match('//s', $match, $matches))
+ {
+ $this->_debugPrint("Handler=>comment: " . htmlspecialchars($matches[1]));
+ $params = array();
+ $params['action'] = 'comment';
+ $params['comment'] = $matches[1];
+ return array($state, $params);
+ }
if (preg_match('/(={2,6})\s*(.+?)\s*={2,6}/', $match, $matches))
{
@@ -249,5 +259,5 @@
case DOKU_LEXER_UNMATCHED:
- $this->_debugPrint("Handler=>unmatched: " . $match);
+ $this->_debugPrint("Handler=>unmatched: " . htmlspecialchars($match));
return array($state, $match);
break;
@@ -313,7 +323,7 @@
if ($this->divide_edit_section && method_exists($renderer, 'startSectionEdit'))
{
- $extra_classy = $renderer->startSectionEdit($params['bytepos'], 'plugin_simpletabs');
+ $extra_classy = ' ' . $renderer->startSectionEdit($params['bytepos'], 'plugin_simpletabs');
}
- $renderer->doc .= '