Skip to content

Commit e6bdb61

Browse files
mithun-daajasnell
authored andcommitted
docs: fix man pages link if tok type is code
Do not call the linkManPages if the tok type is code Fixes: #5686 PR-URL: #5721 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d829028 commit e6bdb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function render(lexed, filename, template, cb) {
110110
// for example, link man page references to the actual page
111111
function parseText(lexed) {
112112
lexed.forEach(function(tok) {
113-
if (tok.text) {
113+
if (tok.text && tok.type !== 'code') {
114114
tok.text = linkManPages(tok.text);
115115
}
116116
});

0 commit comments

Comments
 (0)