Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 711 Bytes

README.asc

File metadata and controls

33 lines (24 loc) · 711 Bytes

Markdown to Asciidoc Converter for Java

You can convert Markdown input to Asciidoc output with MarkdownToAsciidoc. MarkdownToAsciidoc converts Markdown content/files with Java 8 Nashorn engine.

Usage Examples

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);

License

MIT