diff options
| author | Peter Bacon Darwin | 2014-02-07 20:40:35 +0000 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:41 +0000 | 
| commit | 2f7c57233ad2d578952dbba5c63ae8d50c1b487a (patch) | |
| tree | c14f91ad8429dd4c0b93bbc89dbd37ac4382f1e2 /src/ngResource | |
| parent | 1192ae44f1d7f944719520f235e9f2ec895bdfd5 (diff) | |
| download | angular.js-2f7c57233ad2d578952dbba5c63ae8d50c1b487a.tar.bz2 | |
docs(bike-shed-migration): let markdown deal with extenal links
It is problematic to use {@link} tags with external links because the
markdown parser converts them to links for us before we parse the @links.
This means that the following tag:
```
{@link http://www.google.com Google}
```
get converted to:
```
{@link <a href="http://www.google.com/"></a> Google}
```
Our {@link} parser then converts this to:
```
<a href="<a"><</a>href="http://www.google.com/"></a> Google}
```
which is clearly a mess.  The best solution is not to use {@link} tags
for external links and just use the standard markdown syntax:
```
[Google](http://www.google.com)
```
In the long run, we could look into configuring or modifying `marked` not
to convert these external links or we could provide a "pre-parser"
processor that dealt with such links before `marked` gets its hands on it.
Diffstat (limited to 'src/ngResource')
| -rw-r--r-- | src/ngResource/resource.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index 2ee9cbbc..d0bc6544 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -134,10 +134,10 @@ function shallowClearAndCopy(src, dst) {   *   - **`timeout`** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise} that   *     should abort the request when resolved.   *   - **`withCredentials`** - `{boolean}` - whether to set the `withCredentials` flag on the - *     XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5 - *     requests with credentials} for more information. - *   - **`responseType`** - `{string}` - see {@link - *     https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}. + *     XHR object. See [requests with credentials](https://developer.mozilla.org/en/http_access_control#section_5) + *     for more information. + *   - **`responseType`** - `{string}` - see + *     [requestType](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType).   *   - **`interceptor`** - `{Object=}` - The interceptor object has two optional methods -   *     `response` and `responseError`. Both `response` and `responseError` interceptors get called   *     with `http response` object. See {@link ng.$http $http interceptors}. | 
