Skip to content

Commit

Permalink
Merge pull request #178 from OptionalM/master
Browse files Browse the repository at this point in the history
Fix #174
  • Loading branch information
HEmile authored May 8, 2023
2 parents 9a64a66 + a2dc1ff commit 6e86a2f
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 6e86a2f

Please sign in to comment.