0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 07:54:13 +01:00

bug fixed

This commit is contained in:
Lunny Xiao 2017-09-04 14:22:07 +08:00
parent b689bb6180
commit caa61a2b99
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

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