mirror of https://github.com/ppy/osu
use OsuMarkdownListItem for ListItemBlock
This commit is contained in:
parent
820408757a
commit
a24a279404
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue