diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md index a576d0c..ab82b03 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Dependencies/Relations.of.Markdown.verified.md @@ -77,7 +77,7 @@ filePath: CodeFile, alternateText: string? [Nullable, Optional] ) - - RelativeTo( + - RelativeFrom( file: CodeFile ) : Markdown+Image - ToString() : string diff --git a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md index 6243afb..6e85c4a 100644 --- a/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md +++ b/Documentation/Synergy.Documentation.Tests/Architecture/Public/Api.of.Synergy.Documentation.verified.md @@ -142,7 +142,7 @@ filePath: CodeFile, alternateText: string? [Nullable, Optional] ) - - RelativeTo( + - RelativeFrom( file: CodeFile ) : Markdown+Image - ToString() : string diff --git a/Documentation/Synergy.Documentation/Markup/Markdown.cs b/Documentation/Synergy.Documentation/Markup/Markdown.cs index e3f1040..ccc4f2d 100644 --- a/Documentation/Synergy.Documentation/Markup/Markdown.cs +++ b/Documentation/Synergy.Documentation/Markup/Markdown.cs @@ -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); }