Skip to content

Commit 8cec578

Browse files
committed
Update blank link
1 parent f7a90e3 commit 8cec578

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/mdlinker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
}
6363
},
6464
renderSummary(doc) {
65-
doc.querySelectorAll("a").forEach((el) => {
65+
doc.querySelectorAll('a:not([target="_blank"])').forEach((el) => {
6666
const hash = "#" + encodeURIComponent(el.href);
6767
el.href = hash;
6868
if (location.hash == hash) {

0 commit comments

Comments
 (0)