Class AsciiDocCompiler
java.lang.Object
pro.verron.officestamper.asciidoc.AsciiDocCompiler
Facade utilities to parse AsciiDoc and compile it to different targets.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoAsciidoc(org.docx4j.openpackaging.packages.WordprocessingMLPackage pkg) Compiles a WordprocessingMLPackage into the textual AsciiDoc representation used by tests.static StringtoAsciidoc(AsciiDocModel model) Compiles the parsed model to its textual AsciiDoc representation.static org.docx4j.openpackaging.packages.WordprocessingMLPackageCompiles the AsciiDoc source text directly to a WordprocessingMLPackage.static org.docx4j.openpackaging.packages.WordprocessingMLPackagetoDocx(AsciiDocModel model) Compiles the parsed model to a WordprocessingMLPackage.static StringCompiles the AsciiDoc source text directly to HTML.static StringtoHtml(AsciiDocModel model) Compiles the parsed model to HTML.static AsciiDocModelParses AsciiDoc source text into anAsciiDocModel.static AsciiDocModeltoModel(org.docx4j.openpackaging.packages.WordprocessingMLPackage pkg) Parses a Word document into anAsciiDocModel.static javafx.scene.SceneCompiles the AsciiDoc source text directly to a JavaFX Scene.static javafx.scene.ScenetoScene(AsciiDocModel model) Compiles the parsed model to a JavaFX Scene.
-
Method Details
-
toDocx
Compiles the AsciiDoc source text directly to a WordprocessingMLPackage.- Parameters:
asciidoc- source text- Returns:
- package with rendered content
-
toDocx
Compiles the parsed model to a WordprocessingMLPackage.- Parameters:
model- parsed model- Returns:
- package with rendered content
-
toModel
Parses AsciiDoc source text into anAsciiDocModel.- Parameters:
asciidoc- source text- Returns:
- parsed model
-
toScene
Compiles the AsciiDoc source text directly to a JavaFX Scene.- Parameters:
asciidoc- source text- Returns:
- scene with rendered content
-
toScene
Compiles the parsed model to a JavaFX Scene.- Parameters:
model- parsed model- Returns:
- scene with rendered content
-
toHtml
-
toHtml
Compiles the parsed model to HTML.- Parameters:
model- parsed model- Returns:
- HTML representation
-
toAsciidoc
Compiles a WordprocessingMLPackage into the textual AsciiDoc representation used by tests. This mirrors the legacy Stringifier output to preserve expectations.- Parameters:
pkg- a Word document package- Returns:
- textual representation
-
toModel
Parses a Word document into anAsciiDocModel.- Parameters:
pkg- a Word document package- Returns:
- parsed model
-
toAsciidoc
Compiles the parsed model to its textual AsciiDoc representation.- Parameters:
model- parsed model- Returns:
- textual representation
-