mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
initial CommentMarkdownContainer
This commit is contained in:
parent
55e8a44db6
commit
43100c5288
20
osu.Game/Overlays/Comments/CommentMarkdownContainer.cs
Normal file
20
osu.Game/Overlays/Comments/CommentMarkdownContainer.cs
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.Inlines;
|
||||
using osu.Framework.Graphics.Containers.Markdown;
|
||||
using osu.Game.Graphics.Containers.Markdown;
|
||||
|
||||
namespace osu.Game.Overlays.Comments
|
||||
{
|
||||
public class CommentMarkdownContainer : OsuMarkdownContainer
|
||||
{
|
||||
public override MarkdownTextFlowContainer CreateTextFlow() => new CommentMarkdownTextFlowContainer();
|
||||
|
||||
private class CommentMarkdownTextFlowContainer : OsuMarkdownTextFlowContainer
|
||||
{
|
||||
// Don't render image in comment for now
|
||||
protected override void AddImage(LinkInline linkInline) { }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user