mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-20 09:05:49 +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
@@ -71,7 +71,7 @@ namespace Spectre.Console.Rendering
|
||||
throw new ArgumentNullException(nameof(text));
|
||||
}
|
||||
|
||||
Text = Emoji.Replace(text).NormalizeLineEndings();
|
||||
Text = text.NormalizeLineEndings();
|
||||
Style = style;
|
||||
IsLineBreak = lineBreak;
|
||||
IsWhiteSpace = string.IsNullOrWhiteSpace(text);
|
||||
|
||||
Reference in New Issue
Block a user