Skip to content

Commit

Permalink
docs: fix man pages link nodejs#5686
Browse files Browse the repository at this point in the history
Do not call the linkManPages if the tok type is code
  • Loading branch information
mithun-daa committed Mar 15, 2016
1 parent 668fb17 commit 47394ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 47394ab

Please sign in to comment.