Browse Source

bug fixed

Lunny Xiao 1 year ago
parent
commit
caa61a2b99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/vendor/plugins/autolink/autolink.js

+ 1 - 1
public/vendor/plugins/autolink/autolink.js

@@ -26,7 +26,7 @@
26 26
         re.lastIndex = 0;
27 27
         var results = re.exec(node.textContent);
28 28
         if(results !== null) {
29
-            if($(node).parents().filter('pre>code').length === 0) {
29
+            if($(node).parents().filter('code').length === 0) {
30 30
                 $(node).replaceWith(
31 31
                     $('<span />').html(
32 32
                         node.nodeValue.replace(re, '<a href="$1">$1</a>')