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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/doc/html.js‎

Lines changed: 1 addition & 1 deletion
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
functionparseText(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)