/// <summary> /// Visits the <c>a</c> extended documentation element. /// </summary> /// public override void VisitAnchor(Anchor anchor) { string url = DistributionManager.GetDocumentationUrl(anchor.Href); string text = parse(anchor.Href, false); if (!String.IsNullOrEmpty(anchor.Content)) { text = anchor.Content; } builder.Append(hyperlink(url, text)); }
/// <summary> /// Visits the <c>see</c> documentation element. /// </summary> /// public override void VisitSee(See see) { string url = DistributionManager.GetDocumentationUrl(see.Cref); string text = parse(see.Cref, false); if (!String.IsNullOrEmpty(see.Content)) { text = see.Content; } builder.Append(hyperlink(url, text)); }
/// <summary> /// Visits the <c>seealso</c> documentation element. /// </summary> /// public override void VisitSeeAlso(SeeAlso seeAlso) { string url = DistributionManager.GetDocumentationUrl(seeAlso.Cref); string text = parse(seeAlso.Cref, false); var hyperlink = new HyperlinkViewModel() { Url = url, Text = text }; if (!String.IsNullOrEmpty(seeAlso.Content)) { hyperlink.Text = seeAlso.Content; } current.SeeAlso.Add(hyperlink); }