Skip to content

Commit 0e221f7

Browse files
committed
change setcounter syntax to common
1 parent c8b39bd commit 0e221f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/caption.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getSort() {
4848

4949

5050
public function connectTo($mode) {
51-
$this->Lexer->addSpecialPattern('{{setcounter [a-z0-9=]+?}}',$mode,'plugin_latexcaption_caption');
51+
$this->Lexer->addSpecialPattern('{{setcounter>[a-z0-9=]+?}}',$mode,'plugin_latexcaption_caption');
5252
$this->Lexer->addEntryPattern('<figure.*?>(?=.*</figure>)',$mode,'plugin_latexcaption_caption');
5353
$this->Lexer->addEntryPattern('<table.*?>(?=.*</table>)',$mode,'plugin_latexcaption_caption');
5454
$this->Lexer->addEntryPattern('<codeblock.*?>(?=.*</codeblock>)',$mode,'plugin_latexcaption_caption');
@@ -166,7 +166,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler){
166166
return array($state, $match, $pos, $params);
167167
}
168168
if ($state == DOKU_LEXER_SPECIAL){
169-
if (substr($match,0,13) != '{{setcounter ') {
169+
if (substr($match,0,13) != '{{setcounter>') {
170170
return true;
171171
}
172172

0 commit comments

Comments
 (0)