From 7c74b8b0b24fe05e61e7c689c07d180501417773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Luthi?= Date: Tue, 24 May 2022 16:06:11 +0200 Subject: [PATCH] Fix the "Escaping Interpolated Strings" documentation * `MarkupLineInterpolated` instead of `MarkupInterpolated` * Use an actual interpolated string in sample code to make it valid --- docs/input/markup.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/input/markup.md b/docs/input/markup.md index a7b3e4b56..bd1363b10 100644 --- a/docs/input/markup.md +++ b/docs/input/markup.md @@ -66,10 +66,11 @@ AnsiConsole.Markup("[red]{0}[/]", Markup.Escape("Hello [World]")); ## Escaping Interpolated Strings -When working with interpolated string, you can use the `MarkupInterpolated` and `MarkupInterpolatedLine` methods to automatically escape the values in the interpolated string holes. +When working with interpolated string, you can use the `MarkupInterpolated` and `MarkupLineInterpolated` methods to automatically escape the values in the interpolated string holes. ```csharp -AnsiConsole.MarkupInterpolated("[red]{0}[/]", "Hello [World]"); +string hello = "Hello [World]"; +AnsiConsole.MarkupInterpolated($"[red]{hello}[/]"); ``` ## Setting background color