diff --git a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs index 56bf72656a..c7e9f267bd 100644 --- a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs +++ b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs @@ -21,6 +21,13 @@ protected override void AddMarkdownComponent(IMarkdownObject markdownObject, Fil // Don't parse YAML Frontmatter break; + case ListItemBlock listItemBlock: + var childContainer = CreateListItem(listItemBlock); + container.Add(childContainer); + foreach (var single in listItemBlock) + base.AddMarkdownComponent(single, childContainer, level); + break; + default: base.AddMarkdownComponent(markdownObject, container, level); break; @@ -37,6 +44,8 @@ protected override void AddMarkdownComponent(IMarkdownObject markdownObject, Fil protected override MarkdownTable CreateTable(Table table) => new OsuMarkdownTable(table); + protected virtual OsuMarkdownListItem CreateListItem(ListItemBlock listItemBlock) => new OsuMarkdownListItem(); + protected override MarkdownPipeline CreateBuilder() => new MarkdownPipelineBuilder().UseAutoIdentifiers(AutoIdentifierOptions.GitHub) .UseEmojiAndSmiley()