huacnlee/ruby-china — pull request #143 by doitian (2011-12-04 15:39:19+00:00)
Title: Parse [[Wikilink]] in wiki

- [[Ruby]] links to wiki page Ruby
- [[topic:1]] links to topic with id 1
- [[node:1]] links to node with id 1
- [[w:Ruby]] links to Ruby page in wikipedia
- [[rubytaiwan:Ruby]] links to wiki page Ruby in ruby-taiwan.org
[[rubytaiwan:topic:1]], and [[rubytaiwan:node:1]] also work.
- [[Ruby on Rails|ROR]] links to wiki page "Ruby on Rails" with link name "ROR"

It is customizable, see config/initializers/wikilink.rb

e.g.

following is a test page for this feature:

```markdown
- [[Test]]
- [[Ruby]]
- [[Ruby on Rails|ROR]]
- \\[[Escaped]]
- [[topic:1]]
- [[node:1]]
- [[w:Ruby]]
- [[rubytaiwan:Home]]
```

produces

```html

Test

Ruby

ROR

[[Escaped]]

topic:1

node:1

w:Ruby

rubytaiwan:Home

```