protected override void Write(LatexRenderer renderer, AutolinkInline obj) { if (renderer.EnableLatexForInline) { renderer.Write("<a href=\""); if (obj.IsEmail) { renderer.Write("mailto:"); } renderer.Write(obj.Url); renderer.WriteAttributes(obj); if (!obj.IsEmail && AutoRelNoFollow) { renderer.Write(" rel=\"nofollow\""); } renderer.Write("\">"); } renderer.WriteEscape(obj.Url); if (renderer.EnableLatexForInline) { renderer.Write("</a>"); } }
protected override void Write(LatexRenderer renderer, CodeInline obj) { if (renderer.EnableLatexForInline) { renderer.Write("\\verb|") /*.WriteAttributes(obj).Write(">")*/; } renderer.WriteEscape(obj.Content); if (renderer.EnableLatexForInline) { renderer.Write("|"); } }
protected override void Write(LatexRenderer renderer, LinkInline link) { if (link.IsImage) { renderer.Write("\\includegraphics{"); renderer.Write(link.GetDynamicUrl != null ? link.GetDynamicUrl() ?? link.Url : link.Url); renderer.Write("}"); } else { renderer.Write("\\texttt{"); renderer.WriteEscape(link.GetDynamicUrl != null ? link.GetDynamicUrl() ?? link.Url : link.Url); renderer.Write("}"); } }
protected override void Write(LatexRenderer renderer, DelimiterInline obj) { renderer.WriteEscape(obj.ToLiteral()); renderer.WriteChildren(obj); }
protected override void Write(LatexRenderer renderer, LiteralInline obj) { renderer.WriteEscape(ref obj.Content); }
protected override void Write(LatexRenderer renderer, CodeInline obj) { renderer.Write("\\texttt{"); renderer.WriteEscape(obj.Content); renderer.Write("}"); }
protected override void Write(LatexRenderer renderer, AutolinkInline obj) { renderer.Write("\\texttt{"); renderer.WriteEscape(obj.Url); renderer.Write("}"); }
protected override void Write(LatexRenderer renderer, HtmlEntityInline obj) { renderer.WriteEscape(obj.Transcoded); }