You can convert Markdown input to Asciidoc output with MarkdownToAsciidoc. MarkdownToAsciidoc converts Markdown content/files with Java 8 Nashorn engine.
There is more than MarkdownToAsciidoc#convert methods for conversion. Some of them are below.
Synchronous way
String result = MarkdownToAsciidoc.convert("# Merhaba Dünya");
Asynchronous way
MarkdownToAsciidoc.convert("# Merhaba Dünya", r -> {
System.out.println(r);
});
Path way
Path outputPath = Paths.get("E:\\output.asciidoc");
MarkdownToAsciidoc.convert("# Merhaba Dünya", outputPath);