diff --git a/src/Stack/Infrastructure/ConsoleInputProvider.cs b/src/Stack/Infrastructure/ConsoleInputProvider.cs index f769108..a4afdf0 100644 --- a/src/Stack/Infrastructure/ConsoleInputProvider.cs +++ b/src/Stack/Infrastructure/ConsoleInputProvider.cs @@ -22,9 +22,11 @@ public string Text(string prompt, string? defaultValue = null) var textPrompt = new TextPrompt(prompt); if (defaultValue is not null) - textPrompt.DefaultValue(defaultValue); + textPrompt.DefaultValue(defaultValue.EscapeMarkup()); - return console.Prompt(textPrompt); + var result = console.Prompt(textPrompt); + + return result.RemoveMarkup(); } public string Select(string prompt, string[] choices)