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 <jasnell@gmail.com>
  • Loading branch information
mithun-daa authored and Fishrock123 committed Mar 22, 2016
1 parent 89df17e commit f34a00c
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 f34a00c

Please sign in to comment.