-
Notifications
You must be signed in to change notification settings - Fork 488
Closed
Labels
Description
/** 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:
documentation/lib/html_helpers.js
Lines 68 to 75 in 85ff395
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; | |
} |