/** Represents an HTTP response.
* @typedef {Object} HttpResponse
* @memberof request
* @static
*/
/** Example that doesn't work
* @function
* @param {request.HttpRequest} req - The request object
*/
Here's our current autolink code:
|
function autolink(paths, text) { |
|
if (paths.indexOf(slug(text)) !== -1) { |
|
return '<a href="#' + slug(text) + '">' + text + '</a>'; |
|
} else if (getGlobalExternalLink(text)) { |
|
return '<a href="' + getGlobalExternalLink(text) + '">' + text + '</a>'; |
|
} |
|
return text; |
|
} |
- this isn't getting the right paths generated.
Here's our current autolink code:
documentation/lib/html_helpers.js
Lines 68 to 75 in 85ff395