spectre.console
spectre.console copied to clipboard
Markup.Escape() or EscapeMarkup() wouldn't escape Emoji markups
Found in version: 0.39.0
Found this when using AnsiConsole.MarkupLine() or Markup() method to print an exception stack trace, the method always raise another Exception in Segment class SplitOverflow() method. So I tried to escape markup labels in the stack trace string using Markup.Escape() or EscapeMarkup() methods, yet the same result.
After realizing the stack trace contains : character, and Emoji markup token was the same, I checked the EscapeMarkup() methods, to found that it only escape these : [ ].
So, if the "Emoji markup syntax" was part of the "whole markup syntax", would it be more reasonable to also escape that too?