There's a lot of libraries to render markdown file. But I cannot found any library to produce a
*.md file from Java code. I'm looking for some library like:
FileOutputStream outStream = new FileOutputStream("readme.md"); MarkdownDocument doc = new MarkdownDocument(outStream); doc.appendHeader1("Welcome", HeaderStyle.UNDERLINE); doc.appendParagraph("A paragraph..."); doc.flush();
And the above code would produce the following content:
Welcome ======= A paragraph...
Actually, either markdown or asciidoc library is OK. I'm building a testing tool, which will need to generate report. To support both Word, PDF and HTML formats, I want to produce plain text report first, then use Pandoc to convert it into the desired format.
Hope that the update make my intension more clear for a better recomnendation.