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 3c46f20 commit 2b4e21dCopy full SHA for 2b4e21d
src/Elastic.Markdown/IO/MarkdownFile.cs
@@ -46,12 +46,8 @@ public DocumentationGroup? Parent
46
public string? Title { get; private set; }
47
public string? NavigationTitle
48
{
49
- get
50
- {
51
- var title = !string.IsNullOrEmpty(_navigationTitle) ? _navigationTitle : Title;
52
- return string.IsNullOrEmpty(title) ? null : Helpers.Markdown.StripMarkdown(title);
53
- }
54
- private set => _navigationTitle = value;
+ get => !string.IsNullOrEmpty(_navigationTitle) ? _navigationTitle : Title;
+ private set => _navigationTitle = value != null ? Helpers.Markdown.StripMarkdown(value) : null;
55
}
56
57
//indexed by slug
0 commit comments