mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
20 lines
400 B
C#
20 lines
400 B
C#
using System;
|
|
|
|
namespace Spectre.Console.Internal
|
|
{
|
|
internal sealed class MarkupTextNode : IMarkupNode
|
|
{
|
|
public string Text { get; }
|
|
|
|
public MarkupTextNode(string text)
|
|
{
|
|
Text = text ?? throw new ArgumentNullException(nameof(text));
|
|
}
|
|
|
|
public void Render(IAnsiConsole renderer)
|
|
{
|
|
renderer.Write(Text);
|
|
}
|
|
}
|
|
}
|