diff --git a/public/vendor/plugins/autolink/autolink.js b/public/vendor/plugins/autolink/autolink.js
index 039cd7db24..2993954ab6 100644
--- a/public/vendor/plugins/autolink/autolink.js
+++ b/public/vendor/plugins/autolink/autolink.js
@@ -26,7 +26,7 @@
re.lastIndex = 0;
var results = re.exec(node.textContent);
if(results !== null) {
- if($(node).parents().filter('pre>code').length === 0) {
+ if($(node).parents().filter('code').length === 0) {
$(node).replaceWith(
$('').html(
node.nodeValue.replace(re, '$1')