1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

add OsuMarkdownHeading

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-03 09:35:55 +07:00
parent b97d3f2af1
commit b497785416
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2
2 changed files with 18 additions and 0 deletions

View File

@ -44,6 +44,8 @@ namespace osu.Game.Graphics.Containers.Markdown
public override MarkdownTextFlowContainer CreateTextFlow() => new OsuMarkdownTextFlowContainer();
protected override MarkdownHeading CreateHeading(HeadingBlock headingBlock) => new OsuMarkdownHeading(headingBlock);
protected override MarkdownFencedCodeBlock CreateFencedCodeBlock(FencedCodeBlock fencedCodeBlock) => new OsuMarkdownFencedCodeBlock(fencedCodeBlock);
protected override MarkdownSeparator CreateSeparator(ThematicBreakBlock thematicBlock) => new OsuMarkdownSeparator();

View File

@ -0,0 +1,16 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Markdig.Syntax;
using osu.Framework.Graphics.Containers.Markdown;
namespace osu.Game.Graphics.Containers.Markdown
{
public class OsuMarkdownHeading : MarkdownHeading
{
public OsuMarkdownHeading(HeadingBlock headingBlock)
: base(headingBlock)
{
}
}
}