Skip to content

Commit 4d0200c

Browse files
authored
Update codeit-autolinker.js
1 parent b4682c0 commit 4d0200c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/plugins/codeit-autolinker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@
6969

7070
matches[0] = matches[0].replaceAll('\'','').replaceAll('"','').replaceAll('`','');
7171

72-
env.content.replace(matches[0], '<a class="token url-link" onclick="' + onClickEvent + '" href="'+ matches[0] + '">' + matches[0] + '</a>');
72+
env.content = env.content.replace(matches[0], '<a class="token url-link" onclick="' + onClickEvent + '" href="'+ matches[0] + '">' + matches[0] + '</a>');
7373

74-
console.log(env.content);
7574
}
7675

7776
}

0 commit comments

Comments
 (0)