Examples

Practical snippets for asciidoc-converters. Each converter takes an AsciiDocModel (produced by asciidoc-core) and returns a String.

Convert to HTML

AsciiDocModel model = new AsciiDocParser().parse("Some *bold* text");
String html = new AsciiDocToHtml().convert(model);

Convert to plain text

String text = new AsciiDocToText().convert(model);

Convert to SVG with an editor theme

String svg = new AsciiDocToSvg().convert(model, Theme.WORD);

Next steps

  • Getting Started — install and run your first conversion.
  • Features — the HTML, Text, and SVG converters in detail.
Edit this page