mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Merge branch 'master' into osu-random-mod-improvements
This commit is contained in:
commit
94dc25837f
@ -95,6 +95,15 @@ _**italic with underscore, bold with asterisk**_";
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestAutoLink()
|
||||
{
|
||||
AddStep("Add autolink", () =>
|
||||
{
|
||||
markdownContainer.Text = "<https://discord.gg/ppy>";
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestInlineCode()
|
||||
{
|
||||
|
@ -26,6 +26,12 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
title = linkInline.Title;
|
||||
}
|
||||
|
||||
public OsuMarkdownLinkText(AutolinkInline autolinkInline)
|
||||
: base(autolinkInline)
|
||||
{
|
||||
text = autolinkInline.Url;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
|
@ -17,6 +17,9 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
protected override void AddLinkText(string text, LinkInline linkInline)
|
||||
=> AddDrawable(new OsuMarkdownLinkText(text, linkInline));
|
||||
|
||||
protected override void AddAutoLink(AutolinkInline autolinkInline)
|
||||
=> AddDrawable(new OsuMarkdownLinkText(autolinkInline));
|
||||
|
||||
protected override void AddImage(LinkInline linkInline) => AddDrawable(new OsuMarkdownImage(linkInline));
|
||||
|
||||
// TODO : Change font to monospace
|
||||
|
Loading…
Reference in New Issue
Block a user