IEnumerable <ITagSpan <ErrorTag> > GetErrorTagSpans(MarkdownImage image) { if (!_showImages) { yield break; } string error; if (_uriErrors.TryGetValue(image.UriSpan.GetText(), out error)) { yield return(MakeErrorTagSpan(image.Span, error)); } }
IEnumerable <ITagSpan <IntraTextAdornmentTag> > GetIntraTextAdornmentTagSpans(MarkdownImage image) { if (!_showImages) { yield break; } var tagSpan = MakeImageIntraTextAdornmentTagSpans(image.Span, image.AltTextSpan, image.UriSpan, image.OptTitleSpan); if (tagSpan != null) { yield return(tagSpan); } }
IEnumerable <ITagSpan <ClassificationTag> > GetClassificationTagSpans(MarkdownImage image) { yield return(MakeClassificationTagSpan(image.Span, ClassificationTypes.Image)); }