Search in sources :

Example 1 with AutoLinkWithoutDemarcationSpan

use of org.eclipse.mylyn.wikitext.commonmark.internal.inlines.AutoLinkWithoutDemarcationSpan in project mylyn.docs by eclipse.

the class InlineContent method markdown.

public static InlineParser markdown() {
    ImmutableList.Builder<SourceSpan> spansBuilder = ImmutableList.builder();
    addStandardSpans(spansBuilder);
    spansBuilder.add(new AutoLinkWithoutDemarcationSpan());
    addTerminatorSpans(spansBuilder);
    return new InlineParser(spansBuilder.build());
}
Also used : ImmutableList(com.google.common.collect.ImmutableList) SourceSpan(org.eclipse.mylyn.wikitext.commonmark.internal.inlines.SourceSpan) InlineParser(org.eclipse.mylyn.wikitext.commonmark.internal.inlines.InlineParser) AutoLinkWithoutDemarcationSpan(org.eclipse.mylyn.wikitext.commonmark.internal.inlines.AutoLinkWithoutDemarcationSpan)

Aggregations

ImmutableList (com.google.common.collect.ImmutableList)1 AutoLinkWithoutDemarcationSpan (org.eclipse.mylyn.wikitext.commonmark.internal.inlines.AutoLinkWithoutDemarcationSpan)1 InlineParser (org.eclipse.mylyn.wikitext.commonmark.internal.inlines.InlineParser)1 SourceSpan (org.eclipse.mylyn.wikitext.commonmark.internal.inlines.SourceSpan)1