Add parser and renderer for markup language

This commit is contained in:
Patrik Svensson
2020-07-24 00:19:21 +02:00
committed by Patrik Svensson
parent b72a695c35
commit 0986a5f744
27 changed files with 976 additions and 289 deletions

View File

@ -12,7 +12,7 @@ namespace Spectre.Console.Internal
throw new ArgumentNullException(nameof(console));
}
var current = console.Foreground;
var current = foreground ? console.Foreground : console.Background;
console.SetColor(color, foreground);
return new ColorScope(console, current, foreground);
}