Skip to content

Commit

Permalink
Remove target="_blank" from links
Browse files Browse the repository at this point in the history
  • Loading branch information
alangrainger committed Sep 25, 2023
1 parent dc51d04 commit f2c77fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default class Note {
continue
} else if (match) {
// External link
el.removeAttribute('target')
const linkedFile = this.plugin.app.metadataCache.getFirstLinkpathDest(match[1], '')
if (linkedFile instanceof TFile) {
const linkedMeta = this.plugin.app.metadataCache.getFileCache(linkedFile)
Expand Down

0 comments on commit f2c77fb

Please sign in to comment.