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:
parent
d8290286b3
commit
e6bdb6176b
@ -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…
x
Reference in New Issue
Block a user