Skip to content

Commit

Permalink
Put back new style links for Doku wikilink
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@208154 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Justin Patrin committed Feb 28, 2006
1 parent d6c51f8 commit f9f0b5c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Text/Wiki/Parse/Doku/Wikilink.php
Expand Up @@ -107,12 +107,16 @@ function processDescr(&$matches)
}*/

// create and return the replacement token and preceding text
return $this->wiki->addToken($this->rule, $options);
/*return $this->wiki->addToken($this->rule,

//old style, return a single token
//return $this->wiki->addToken($this->rule, $options);

//new style, return start and end tokens around the link text
return $this->wiki->addToken($this->rule,
array_merge(array('type' => 'start'), $options)).
$options['text'].
$this->wiki->addToken($this->rule,
array_merge(array('type' => 'end'), $options));*/
array_merge(array('type' => 'end'), $options));

}
}
Expand Down

0 comments on commit f9f0b5c

Please sign in to comment.