Browse Source

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>
v4.x
Mithun Patel 9 years ago
committed by Myles Borins
parent
commit
20539954ff
  1. 2
      tools/doc/html.js

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

Loading…
Cancel
Save