mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Add markdown country flag support
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#nullable disable
|
||||
|
||||
using System.Linq;
|
||||
using Markdig.Extensions.CustomContainers;
|
||||
using Markdig.Extensions.Yaml;
|
||||
using Markdig.Syntax;
|
||||
using Markdig.Syntax.Inlines;
|
||||
@ -16,6 +17,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
public class WikiMarkdownContainer : OsuMarkdownContainer
|
||||
{
|
||||
protected override bool Footnotes => true;
|
||||
protected override bool CustomContainers => true;
|
||||
|
||||
public string CurrentPath
|
||||
{
|
||||
@ -26,6 +28,11 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
{
|
||||
switch (markdownObject)
|
||||
{
|
||||
case CustomContainer:
|
||||
// infoboxes are parsed into CustomContainer objects, but we don't have support for infoboxes yet.
|
||||
// todo: add support for infobox.
|
||||
break;
|
||||
|
||||
case YamlFrontMatterBlock yamlFrontMatterBlock:
|
||||
container.Add(new WikiNoticeContainer(yamlFrontMatterBlock));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user