public virtual void Visit(LinkReference inline) { var label = inline.Label == null ? inline.Link.Label : inline.Label; WriteStartTag(inline, "a", new Attribute("href", inline.Link.Destination.Inlines, true), new Attribute("title", inline.Link.Title.Inlines) ); Write(label.Inlines); WriteEndTag(inline, "a"); }
public virtual void Visit(LinkReference inline) { Write("<a"); WriteAttribute("href", inline.Link.Destination.Inlines, true); WriteAttribute("title", inline.Link.Title.Inlines); Write(">"); if (inline.Label == null) { Write(inline.Link.Label.Inlines); } else { Write(inline.Label.Inlines); } Write("</a>"); }
internal UrlPostProcessorContext(ParsingContext context, LinkReference reference, SiteInfo siteInfo, Uri url) { Context = context; SiteInfo = siteInfo; Reference = reference; // Proxy internal fields Label = reference.Label; IsImage = reference.IsImage; IsCleanUrl = reference.IsCleanUrl; IsAutoLink = reference.IsAutoLink; IsNamedReferenceLink = reference.IsNamedReferenceLink; Url = new CleanUrl(url); UrlFragment = url.Fragment; Configuration = Context.Configuration; WebIO = Context.WebIO; }
public ImageReference(LinkReference linkReference) { LinkReference = linkReference; }
public ImageReference(LinkReference linkReference) { LinkReference = linkReference; }