public static (string content, LinkInline[] images) MdToZen(this string str, Uri host) { var zenImageMarkdownOptions = new ZenImageMarkdownOptions { Host = host }; var mpl = new MarkdownPipelineBuilder() .Use(new ZenImageMarkdownExtensions(zenImageMarkdownOptions)) .UsePipeTables() .UseAdvancedExtensions() .Build(); var content = Markdown.ToHtml(str, mpl); return(content, zenImageMarkdownOptions.RenderedLinks.ToArray()); }
/// <summary> /// Adds a new Hashtable with gameobjects to the Graph hashtables. /// </summary> /// <param name="links">Hashtable(string linkID, GameObject link)</param> /// <remarks>Will be discontinued once the graph objects are included.</remarks> public static void AddRenderedGraphLinks(Hashtable links) { int idx = RenderedLinks.Count + 1; RenderedLinks.Add(idx, links); }