From 20539954ff32115c71b146ae29ef2e3d7b57d86c Mon Sep 17 00:00:00 2001 From: Mithun Patel Date: Tue, 15 Mar 2016 10:11:26 -0500 Subject: [PATCH] docs: fix man pages link if tok type is code Do not call the linkManPages if the tok type is code Fixes: https://github.com/nodejs/node/issues/5686 PR-URL: https://github.com/nodejs/node/pull/5721 Reviewed-By: James M Snell --- tools/doc/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/html.js b/tools/doc/html.js index 2565c97..8de9f49 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -110,7 +110,7 @@ function render(lexed, filename, template, cb) { // for example, link man page references to the actual page function parseText(lexed) { lexed.forEach(function(tok) { - if (tok.text) { + if (tok.text && tok.type !== 'code') { tok.text = linkManPages(tok.text); } }); -- 2.7.4