mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Update markdown code block implementation in line with framework changes
This commit is contained in:
parent
414e55c90e
commit
91675e0970
@ -10,11 +10,11 @@ using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Graphics.Containers.Markdown
|
||||
{
|
||||
public partial class OsuMarkdownFencedCodeBlock : MarkdownFencedCodeBlock
|
||||
public partial class OsuMarkdownCodeBlock : MarkdownCodeBlock
|
||||
{
|
||||
// TODO : change to monospace font for this component
|
||||
public OsuMarkdownFencedCodeBlock(FencedCodeBlock fencedCodeBlock)
|
||||
: base(fencedCodeBlock)
|
||||
public OsuMarkdownCodeBlock(CodeBlock codeBlock)
|
||||
: base(codeBlock)
|
||||
{
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
|
||||
protected override MarkdownHeading CreateHeading(HeadingBlock headingBlock) => new OsuMarkdownHeading(headingBlock);
|
||||
|
||||
protected override MarkdownFencedCodeBlock CreateFencedCodeBlock(FencedCodeBlock fencedCodeBlock) => new OsuMarkdownFencedCodeBlock(fencedCodeBlock);
|
||||
protected override MarkdownCodeBlock CreateCodeBlock(CodeBlock codeBlock) => new OsuMarkdownCodeBlock(codeBlock);
|
||||
|
||||
protected override MarkdownSeparator CreateSeparator(ThematicBreakBlock thematicBlock) => new OsuMarkdownSeparator();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user