use of org.apache.wiki.render.markdown.MarkdownRenderer in project jspwiki by apache.
the class MarkdownRendererTest method translate.
String translate(final WikiEngine e, final WikiPage p, final String src) throws Exception {
WikiContext context = new WikiContext(e, testEngine.newHttpRequest(), p);
MarkdownParser tr = new MarkdownParser(context, new BufferedReader(new StringReader(src)));
MarkdownRenderer conv = new MarkdownRenderer(context, tr.parse());
newPage(p.getName(), src);
return conv.getString();
}
Aggregations