tomaz/appledoc — pull request #359 by paulmelnikow (2013-06-15 19:29:58+00:00)
Title: Fix link content duplication when links are embedded inside other links

When a link falls within another link, such as a URL string within a method call, processing both would result in the processed URL being appended to the processed method call, duplicating the text from the URL. Instead, keep track of the links processed, and ignore a link if it's inside of a previously processed link.

Here's a test case which illustrates the problem:

```objc
/**
`NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]`
*/
@interface Fooclass : NSObject
@end
```

Result:

```html

NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]http://example.com/v1/"]

```

With patch:
```html

NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]

```

The test case does indeed cover this problem but certainly could be improved.