Пример #1
0
        IEnumerable <ITagSpan <IntraTextAdornmentTag> > GetIntraTextAdornmentTagSpans(MarkdownEmphasis emphasis)
        {
            if (!_hideDelimiters)
            {
                yield break;
            }

            yield return(MakeIntraTextAdornmentTagSpan(emphasis.StartDelimiterSpan, () => new UIElement()));

            yield return(MakeIntraTextAdornmentTagSpan(emphasis.EndDelimiterSpan, () => new UIElement()));
        }
Пример #2
0
 IEnumerable <ITagSpan <ClassificationTag> > GetClassificationTagSpans(MarkdownEmphasis emphasis)
 {
     yield return(MakeClassificationTagSpan(emphasis.Span, ClassificationTypes.Emphasis));
 }