From 2fdc6492025e6916e0883931db76454422df431c Mon Sep 17 00:00:00 2001
From: Lunny Xiao <xiaolunwen@gmail.com>
Date: Mon, 4 Sep 2017 14:28:50 +0800
Subject: bug fixed

---
 public/vendor/plugins/autolink/autolink.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(
                     $('<span />').html(
                         node.nodeValue.replace(re, '<a href="$1">$1</a>')
-- 
cgit v1.2.3