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 <jasnell@gmail.com>
This commit is contained in:
Mithun Patel 2016-03-15 10:11:26 -05:00 committed by James M Snell
parent d8290286b3
commit e6bdb6176b

View File

@ -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);
}
});