use of org.eclipse.mylyn.wikitext.asciidoc.AsciiDocLanguage in project mylyn.docs by eclipse.
the class AsciiDocIdGenerationStrategy method parseToHtml.
private static String parseToHtml(String markup) {
MarkupParser localParser = new MarkupParser(new AsciiDocLanguage());
StringWriter out = new StringWriter();
HtmlDocumentBuilder builder = new HtmlDocumentBuilder(out);
builder.setEmitAsDocument(false);
localParser.setBuilder(builder);
localParser.parse(markup);
return out.toString();
}
Aggregations