Browse Source

bug fixed

for-closed-social
Lunny Xiao 7 years ago
parent
commit
caa61a2b99
No known key found for this signature in database GPG Key ID: C3B7C91B632F738A
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 View File

@ -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>')

Loading…
Cancel
Save