Skip to content

Commit 8632be1

Browse files
theletterfMpdreamz
andauthored
Update src/Elastic.Markdown/Myst/Directives/Image/ImageBlock.cs
Co-authored-by: Martijn Laarman <[email protected]>
1 parent 3b5c23f commit 8632be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Myst/Directives/Image/ImageBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public override void FinalizeAndValidate(ParserContext context)
7676
Alt = Prop("alt")?.ReplaceSubstitutions(context) ?? string.Empty;
7777
// Use Alt as Title if no explicit Title is provided
7878
var explicitTitle = Prop("title")?.ReplaceSubstitutions(context);
79-
Title = explicitTitle ?? (!string.IsNullOrEmpty(Alt) ? Alt : null);
79+
Title = string.IsNullOrEmpty(explicitTitle) ? Alt : explicitTitle;
8080

8181
Align = Prop("align");
8282
Height = Prop("height", "h");

0 commit comments

Comments
 (0)