diff --git a/public/js/libs/autolink.js b/public/js/libs/autolink.js
index 3a9c0d4bc..1fd79e89f 100644
--- a/public/js/libs/autolink.js
+++ b/public/js/libs/autolink.js
@@ -5,11 +5,13 @@ jQuery.fn.autolink = function() {
.each(function() {
$(this).each(function() {
if (re.test($(this).text()))
- $(this).replaceWith(
- $("").html(
- this.nodeValue.replace(re, "$1")
- )
- );
+ if($(this).parents().filter('code').length === 0) {
+ $(this).replaceWith(
+ $("").html(
+ this.nodeValue.replace(re, "$1")
+ )
+ );
+ };
});
});
};
\ No newline at end of file