@inherits MSGComponentBase
@* The class is what the Markdown renderer wraps its own output in, so the headings and the list
keep the look they had while this list was Markdown. *@
@foreach (var group in this.groups)
{
@* A level-two heading was shown as h5 while this list was Markdown, because that is what
Markdown.DefaultConfig overrides it to. The heading keeps that size here. *@
@group.Heading
@foreach (var entry in group.Entries)
{
-
@($"[{entry.Number}] ")
@if (entry.Document is { } document)
{
@entry.Title
}
else
{
@entry.Title
}
}
}