I would like to create a Custom TextRenderer for a project. I keep getting a CS0433 error when I try to use MarkedNet.Marked class. I started with how Microsoft did there Wpf TextRenderer, but don't know how to stop the error from happening.
private static TextBlock CreateControl(ScreenTextElement textElement, AdaptiveRenderContext context)
{
Marked marked = new Marked();
marked.Options.Renderer = new AdaptiveXamlMarkdownRenderer();
marked.Options.Mangle = false;
marked.Options.Sanitize = true;
string text = RendererUtilities.ApplyTextFunctions(textElement.Text, context.Lang);
string xaml = $"<TextBlock xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\">{marked.Parse(text)}</TextBlock>
}";
Error CS0433 The type 'Marked' exists in both 'AdaptiveCards, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'Microsoft.MarkedNet, Version=1.0.13.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Thank you for your help.