public static void TryPrepend <TRenderer>(this ObjectRendererCollection list)
     where TRenderer : class, IMarkdownObjectRenderer, new()
 {
     if (!list.Contains <TRenderer>())
     {
         list.Insert(0, new TRenderer());
     }
 }
        public void Setup(MarkdownPipeline pipeline, IMarkdownRenderer renderer)
        {
            HtmlRenderer             htmlRenderer = renderer as HtmlRenderer;
            ObjectRendererCollection renderers    = htmlRenderer?.ObjectRenderers;

            if (renderers != null && !renderers.Contains <ComponentRenderer>())
            {
                renderers.Add(new ComponentRenderer());
            }
        }