Changeset 30320 for documentation
- Timestamp:
- 2015-11-19T10:30:06+13:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/wiki/plugins/simpletabs/syntax.php
r30312 r30320 134 134 $this->Lexer->addPattern('</TAB>', 'plugin_simpletabs'); 135 135 // Hide comments always (sometimes used as separator) 136 $this->Lexer->addPattern(' <!--.*?-->', 'plugin_simpletabs');136 $this->Lexer->addPattern('^<!--.*?-->(?=\n)', 'plugin_simpletabs'); 137 137 // Special things inside the content we want to manually handle. 138 138 $this->Lexer->addPattern( '^[ \t]*={2,6}\s?[^\n]+={2,6}[ \t]*(?=\n)', 'plugin_simpletabs'); … … 232 232 'bytepos' => $pos + strlen($match))); 233 233 } 234 if (preg_match('/ <!--(.*)?-->/s', $match, $matches))234 if (preg_match('/^<!--(.*)?-->(?=\n)/s', $match, $matches)) 235 235 { 236 236 $this->_debugPrint("Handler=>comment: " . htmlspecialchars($matches[1]));
Note:
See TracChangeset
for help on using the changeset viewer.