private void WriteHyperLink(PPTXRenderer renderer, LinkInline link) { renderer.PushHyperLink(new PPTXLink() { LinkKey = link.Url, LinkURL = link.Url }); if (link.Label != null) { var literal = link.FirstChild as LiteralInline; if (literal != null && literal.Content.Match(link.Label) && literal.Content.Length == link.Label.Length) { } else { // full link renderer.Write(link.Label); } } else { if (!string.IsNullOrEmpty(link.Url)) { renderer.WriteChildren(link); } } renderer.PopHyperLink(); }
protected override void Write(PPTXRenderer renderer, HtmlEntityInline obj) { renderer.Write(obj.Original); }
protected override void Write(PPTXRenderer renderer, CodeInline obj) { renderer.PushInlineSetting(renderer.Options.InlineCode); renderer.Write(obj.Content); renderer.PopBlockSetting(); }
protected override void Write(PPTXRenderer renderer, AutolinkInline obj) { renderer.Write(obj.Url); }
protected override void Write(PPTXRenderer renderer, HtmlInline obj) { renderer.Write(obj.Tag); }
protected override void Write(PPTXRenderer renderer, LiteralInline obj) { renderer.Write(ref obj.Content); }