Skip to content

Commit

Permalink
Set displayText
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Feb 3, 2025
1 parent 6749620 commit b98c0dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FrontmatterMarkdownLinksPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ export class FrontmatterMarkdownLinksPlugin extends PluginBase {

link.link = parseLinkResult.url;
link.original = value;
if (parseLinkResult.alias !== undefined) {
link.displayText = parseLinkResult.alias;
}

let keys = this.addedFrontmatterMarkdownLinks.get(filePath);
if (!keys) {
Expand Down

0 comments on commit b98c0dd

Please # to comment.