aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-09-04 14:28:50 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-04 14:28:50 +0800
commit2fdc6492025e6916e0883931db76454422df431c (patch)
tree645876787fd0940ec3f78023f220af1b774880dc
parent0c910afe11800517a0123ca57cd5d137fe748517 (diff)
downloadgitea-2fdc6492025e6916e0883931db76454422df431c.tar.gz
gitea-2fdc6492025e6916e0883931db76454422df431c.zip
bug fixed
-rw-r--r--public/vendor/plugins/autolink/autolink.js2
1 files changed, 1 insertions, 1 deletions
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>')