We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5c23f commit 8632be1Copy full SHA for 8632be1
src/Elastic.Markdown/Myst/Directives/Image/ImageBlock.cs
@@ -76,7 +76,7 @@ public override void FinalizeAndValidate(ParserContext context)
76
Alt = Prop("alt")?.ReplaceSubstitutions(context) ?? string.Empty;
77
// Use Alt as Title if no explicit Title is provided
78
var explicitTitle = Prop("title")?.ReplaceSubstitutions(context);
79
- Title = explicitTitle ?? (!string.IsNullOrEmpty(Alt) ? Alt : null);
+ Title = string.IsNullOrEmpty(explicitTitle) ? Alt : explicitTitle;
80
81
Align = Prop("align");
82
Height = Prop("height", "h");
0 commit comments