<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,7 +34,7 @@ class syntax_plugin_backlinks extends DokuWiki_Syntax_Plugin {
         return array(
             'author' =&gt; 'Michael Klier',
             'email'  =&gt; 'chi@chimeric.de',
-            'date'   =&gt; '2007-08-13',
+            'date'   =&gt; '2008-03-21',
             'name'   =&gt; 'Backlinks',
             'desc'   =&gt; 'Displays backlinks to a given page.',
             'url'    =&gt; 'http://www.chimeric.de/projects/dokuwiki/plugin/backlinks'
@@ -54,7 +54,8 @@ class syntax_plugin_backlinks extends DokuWiki_Syntax_Plugin {
      * Connect pattern to lexer
      */
     function connectTo($mode) {
-        $this-&gt;Lexer-&gt;addSpecialPattern('\{\{backlinks&gt;.+?\}\}',$mode,'plugin_backlinks');
+        $this-&gt;Lexer-&gt;addSpecialPattern('\{\{backlinks&gt;.+?\}\}', $mode, 'plugin_backlinks');
+        $this-&gt;Lexer-&gt;addSpecialPattern('~~BACKLINKS~~', $mode, 'plugin_backlinks');
     }
 
     /**
@@ -63,11 +64,15 @@ class syntax_plugin_backlinks extends DokuWiki_Syntax_Plugin {
     function handle($match, $state, $pos, &amp;$handler){
         global $ID;
 
-        $match = substr($match,12,-2); //strip {{backlinks&gt; from start and }} from end
-        $match = ($match == '.') ? $ID : $match;
+        if($match == '~~BACKLINKS~~') { //check for deprecated syntax
+            $match = $ID;
+        } else {
+            $match = substr($match,12,-2); //strip {{backlinks&gt; from start and }} from end
+            $match = ($match == '.') ? $ID : $match;
 
-        if(strstr($match,&quot;.:&quot;)) {
-            resolve_pageid(getNS($ID),$match,$exists);
+            if(strstr($match,&quot;.:&quot;)) {
+                resolve_pageid(getNS($ID),$match,$exists);
+            }
         }
 
         return (array($match));</diff>
      <filename>syntax.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d4aa29256d0c8fc474ff927a8aa444f71267357</id>
    </parent>
  </parents>
  <author>
    <name>Michael Klier</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </author>
  <url>http://github.com/chimeric/dokuwiki-plugin-backlinks/commit/ae91fe05368d9718346e2830b98496676adf4cd6</url>
  <id>ae91fe05368d9718346e2830b98496676adf4cd6</id>
  <committed-date>2008-03-21T06:41:57-07:00</committed-date>
  <authored-date>2008-03-21T06:41:57-07:00</authored-date>
  <message>added support for deprecated syntax again

darcs-hash:20080321134157-23886-ba5e3d988f578a66545087fbcaf7514cbd9f37dd.gz</message>
  <tree>8cabe93c15fc29b789cc87164821f45dd030d5bd</tree>
  <committer>
    <name>Michael Klier</name>
    <login>chimeric</login>
    <email>chi@chimeric.de</email>
  </committer>
</commit>
