spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

Markup.Escape() or EscapeMarkup() wouldn't escape Emoji markups

Open wsslsy opened this issue 4 years ago • 0 comments

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?

wsslsy avatar May 08 '21 08:05 wsslsy