use of org.eclipse.mylyn.wikitext.commonmark.internal.ProcessingContextBuilder in project mylyn.docs by eclipse.
the class CommonMarkLanguage method createContext.
private ProcessingContext createContext(SourceBlocks sourceBlocks, String markupContent) {
ProcessingContextBuilder contextBuilder = ProcessingContext.builder().idGenerationStrategy(getIdGenerationStrategy());
if (!strictlyConforming) {
contextBuilder.inlineParser(InlineContent.markdown());
}
sourceBlocks.createContext(contextBuilder, LineSequence.create(markupContent));
return contextBuilder.build();
}
use of org.eclipse.mylyn.wikitext.commonmark.internal.ProcessingContextBuilder in project mylyn.docs by eclipse.
the class InlineTest method createContext.
@Test
public void createContext() {
ProcessingContextBuilder builder = ProcessingContext.builder();
new Inline(new Line(1, 2, "text"), 0, 1) {
@Override
public void emit(DocumentBuilder builder) {
}
}.createContext(builder);
ProcessingContext context = builder.build();
assertTrue(context.isEmpty());
}
Aggregations