using System; using System.Collections.Generic; using System.Linq; namespace Spectre.Console.Internal { internal static class MarkupParser { public static Text Parse(string text, Style style = null) { style ??= Style.Plain; var result = new Text(string.Empty); using var tokenizer = new MarkupTokenizer(text); var stack = new Stack