Skip to content

Commit

Permalink
docs: fix man pages link if tok type is code
Browse files Browse the repository at this point in the history
Do not call the linkManPages if the tok type is code

Fixes: #5686
PR-URL: #5721
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
mithun-daa authored and Myles Borins committed Mar 21, 2016
1 parent a60b0c2 commit 7b7fb6b
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 7b7fb6b

Please sign in to comment.