From e6bdb6176bae9838645ef347806fe58d8fb3fea6 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 2565c97128b380..8de9f49987c000 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); } });