Skip to content

Commit

Permalink
Fix Link.markdown()
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmithgu committed Jul 3, 2024
1 parent e61b780 commit c2ca088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expression/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class Link {
/** Convert this link to markdown so it can be rendered. */
public markdown(): string {
let result = (this.embed ? "!" : "") + "[[" + this.obsidianLink();
result += "|";
result += this.displayOrDefault();
result += "]]";
return result;
Expand Down

0 comments on commit c2ca088

Please sign in to comment.