Skip to content

Commit

Permalink
#27: Renamed method creating Markdown.Image relative file path
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Jan 6, 2024
1 parent ed7446e commit be3a793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
filePath: CodeFile,
alternateText: string? [Nullable, Optional]
)
- RelativeTo(
- RelativeFrom(
file: CodeFile
) : Markdown+Image
- ToString() : string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
filePath: CodeFile,
alternateText: string? [Nullable, Optional]
)
- RelativeTo(
- RelativeFrom(
file: CodeFile
) : Markdown+Image
- ToString() : string
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Synergy.Documentation/Markup/Markdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public Image(CodeFile filePath, string? alternateText = null)
public override string ToString()
=> $"![{_alternateText}]({_filePath.ToString().Replace(" ", "%20")}){Markdown.NL}";

public Image RelativeTo(CodeFile file)
public Image RelativeFrom(CodeFile file)
=> new(_filePath.RelativeTo(file.Folder), _alternateText);
}

Expand Down

0 comments on commit be3a793

Please sign in to comment.