use of org.apache.wiki.api.core.Context in project jspwiki by apache.
the class MarkdownRendererTest method translate.
String translate(final Engine e, final Page p, final String src) throws Exception {
final Context context = Wiki.context().create(e, testEngine.newHttpRequest(), p);
final MarkdownParser tr = new MarkdownParser(context, new BufferedReader(new StringReader(src)));
final MarkdownRenderer conv = new MarkdownRenderer(context, tr.parse());
newPage(p.getName(), src);
return conv.getString();
}
Aggregations