use of org.eclipse.mylyn.wikitext.asciidoc.AsciiDocMarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class AsciiDocLanguageWithConfigurationIntegrationTest method parseWithImagesdirConfiguration.
@Test
public void parseWithImagesdirConfiguration() {
AsciiDocMarkupLanguageConfiguration configuration = new AsciiDocMarkupLanguageConfiguration();
Map<String, String> initialAttributes = new HashMap<>();
initialAttributes.put("imagesdir", "IMGS");
configuration.setInitialAttributes(initialAttributes);
MarkupParser parser = createParserWithConfiguration(configuration);
String markup = "See this the {imagesdir} folder";
String html = parseAsciiDocToHtml(markup, parser);
assertEquals("<p>See this the IMGS folder</p>\n", html);
}
use of org.eclipse.mylyn.wikitext.asciidoc.AsciiDocMarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class AsciiDocLanguageWithConfigurationIntegrationTest method parseWithEmptyConfiguration.
@Test
public void parseWithEmptyConfiguration() {
AsciiDocMarkupLanguageConfiguration configuration = new AsciiDocMarkupLanguageConfiguration();
MarkupParser parser = createParserWithConfiguration(configuration);
String html = parseAsciiDocToHtml(AsciiDocLanguageAttributeTest.MARKUP_FOR_DEFAULT, parser);
AsciiDocLanguageAttributeTest.ensureDefaultValues(html);
}
Aggregations