Class AsciiDocToSvg

java.lang.Object
pro.verron.asciidoc.converters.AsciiDocToSvg

public final class AsciiDocToSvg extends Object

Converts an AsciiDocModel into an SVG document simulating an editor interface.

The theme is read from the model attribute "theme". Supported values are "word", "gdocs", and "libre".

See Also:
  • Constructor Details

    • AsciiDocToSvg

      public AsciiDocToSvg()
      Constructs a new AsciiDocToSvg converter.
  • Method Details

    • apply

      public String apply(AsciiDocModel model)
      Converts the given AsciiDoc model into an SVG document simulating an editor interface.
      Parameters:
      model - the parsed AsciiDoc model
      Returns:
      the SVG document as an XML string