use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class TextileLanguageTest method testDoubleQuotationsGerman.
@Test
public void testDoubleQuotationsGerman() throws IOException {
MarkupLanguageConfiguration configuration = new MarkupLanguageConfiguration();
configuration.setLocale(Locale.GERMAN);
parser.getMarkupLanguage().configure(configuration);
String html = parser.parseToHtml("some \"thing is\" quoted");
assertTrue(html.contains("some „thing is” quoted"));
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class MarkupTaskEditorExtension method createRepositoryMarkupLanguage.
@SuppressWarnings("unchecked")
private MarkupLanguageType createRepositoryMarkupLanguage(TaskRepository taskRepository) {
MarkupLanguageType copy = (MarkupLanguageType) markupLanguage.clone();
MarkupLanguageConfiguration configuration = createMarkupLanguageConfiguration(taskRepository);
copy.configure(configuration);
return copy;
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class TextileLanguageTasksTest method initParser.
private void initParser() throws IOException {
parser = new MarkupParser();
markupLanguage = new TextileLanguage();
MarkupLanguageConfiguration configuration = Util.create("bugzilla");
markupLanguage.configure(configuration);
parser.setMarkupLanguage(markupLanguage);
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class AsciiDocLanguageWithConfigurationIntegrationTest method parseWithCommonMarkupLanguageConfiguration.
@Test
public void parseWithCommonMarkupLanguageConfiguration() {
MarkupLanguageConfiguration configuration = new MarkupLanguageConfiguration();
MarkupParser parser = createParserWithConfiguration(configuration);
String html = parseAsciiDocToHtml(AsciiDocLanguageAttributeTest.MARKUP_FOR_DEFAULT, parser);
AsciiDocLanguageAttributeTest.ensureDefaultValues(html);
}
use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.
the class TracWikiLanguageTest method testWikiWordDisabled.
public void testWikiWordDisabled() {
MarkupLanguageConfiguration configuration = new MarkupLanguageConfiguration();
configuration.setWikiWordLinking(false);
markupLanguage.configure(configuration);
markupLanguage.setInternalLinkPattern("https://foo.bar/wiki/{0}");
String html = parser.parseToHtml("A WikiWord points somewhere");
assertTrue(html.contains("<body><p>A WikiWord points somewhere</p></body>"));
}
Aggregations