diff --git a/tools/doc/html.js b/tools/doc/html.js
index 2565c97128b380..8de9f49987c000 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -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);
}
});