Skip to content

Commit

Permalink
Merge branch 'master' into pr/179
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed May 8, 2023
2 parents f6d6151 + 6e86a2f commit c411e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkAttributes/livePreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function buildCMViewPlugin(app: App, _settings: SuperchargedLinksSettings
}
if (isLink && !isAlias && !isPipe || isMDUrl) {
let linkText = view.state.doc.sliceString(node.from, node.to);
linkText = decodeURI(linkText.split("#")[0]);
linkText = linkText.split("#")[0];
let file = app.metadataCache.getFirstLinkpathDest(linkText, mdView.file.basename);
if (isMDUrl && !file) {
try {
Expand Down

0 comments on commit c411e10

Please sign in to comment.