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 34726d9 commit 535023eCopy full SHA for 535023e
blazorbootstrap/Components/Markdown/Markdown.razor.cs
@@ -608,7 +608,7 @@ private List<string> GetLines()
608
inputs.RemoveAt(0);
609
610
// remove last blank line
611
- if (string.IsNullOrWhiteSpace(inputs[^1]))
+ if (inputs.Count > 0 && string.IsNullOrWhiteSpace(inputs[^1]))
612
inputs.RemoveAt(inputs.Count - 1);
613
}
614
0 commit comments