diff --git a/public/vendor/plugins/autolink/autolink.js b/public/vendor/plugins/autolink/autolink.js
index 039cd7db2..2993954ab 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')