mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-11-03 02:25:26 +08:00
Update emoji support
* Add constants for emojis * Move emoji shortcode rendering to Markup * Add documentation * Add example * Add tests
This commit is contained in:
committed by
Patrik Svensson
parent
090b30f731
commit
eeb3f967b6
@@ -8,6 +8,12 @@ namespace Spectre.Console.Internal
|
||||
{
|
||||
public static Paragraph Parse(string text, Style? style = null)
|
||||
{
|
||||
if (text is null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(text));
|
||||
}
|
||||
|
||||
text = Emoji.Replace(text);
|
||||
style ??= Style.Plain;
|
||||
|
||||
var result = new Paragraph();
|
||||
|
||||
Reference in New Issue
Block a user