Skip to content

Commit 9326acc

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/codeit-autolinker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
});
5151

5252

53-
const onClickEvent = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }';
53+
const onClickEvent = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, \"_blank\") }';
5454

5555
const isMac = navigator.platform.indexOf('Mac') > -1;
5656

@@ -69,7 +69,7 @@
6969

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

72-
env.content = 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" title="' + linkTitle + '" onclick="' + onClickEvent + '" href="'+ matches[0] + '">' + matches[0] + '</a>');
7373

7474
}
7575

0 commit comments

Comments
 (0)