diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-04 14:22:07 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-04 14:22:07 +0800 |
commit | caa61a2b99de5dbed8b0976f886a607d0f8ebb16 (patch) | |
tree | 59080f60ab2e670fc854572155308f91a3c8bb35 /public | |
parent | b689bb61804fddfd2df8df7250522b0fc227484e (diff) | |
download | gitea-caa61a2b99de5dbed8b0976f886a607d0f8ebb16.tar.gz gitea-caa61a2b99de5dbed8b0976f886a607d0f8ebb16.zip |
bug fixed
Diffstat (limited to 'public')
-rw-r--r-- | public/vendor/plugins/autolink/autolink.js | 2 |
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>') |