bodyText = htmlSerializer.toHtml(rootNode);
}
else {
RootNode rootNode = markdownProcessor.parseMarkdown(sourceText.toCharArray());
final ExportSerializer htmlSerializer
= new ExportSerializer(new LinkRenderer());
bodyText = htmlSerializer.toHtml(rootNode);
}
}
catch (ParsingTimeoutException ex) {
throw new IOException(ex);