Java Code Examples for org.asciidoctor.Asciidoctor#javaExtensionRegistry()

The following examples show how to use org.asciidoctor.Asciidoctor#javaExtensionRegistry() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsciidocExtensionRegistry.java    From helidon-build-tools with Apache License 2.0 5 votes vote down vote up
@Override
public void register(Asciidoctor asciidoctor) {
    JavaConverterRegistry javaConverterRegistry =
            asciidoctor.javaConverterRegistry();
    javaConverterRegistry.register(AsciidocConverter.class, backendName);

    JavaExtensionRegistry javaExtensionRegistry = asciidoctor
            .javaExtensionRegistry();
    javaExtensionRegistry.block(new CardBlockProcessor());
    javaExtensionRegistry.block(new PillarsBlockProcessor());
    javaExtensionRegistry.preprocessor(new IncludePreprocessor());
}
 
Example 2
Source File: ArrowsAndBoxesExtension.java    From asciidoctorj with Apache License 2.0 5 votes vote down vote up
@Override
public void register(Asciidoctor asciidoctor) {
    
    JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
    javaExtensionRegistry.postprocessor(ArrowsAndBoxesIncludesPostProcessor.class);
    javaExtensionRegistry.block("arrowsAndBoxes", ArrowsAndBoxesBlock.class);
    
}
 
Example 3
Source File: ClasspathIncludeExtension.java    From jkube with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void register(Asciidoctor asciidoctor) {
    final JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
    javaExtensionRegistry.includeProcessor(new ClasspathIncludeProcessor());
}
 
Example 4
Source File: TerminalCommandExtension.java    From asciidoctorj with Apache License 2.0 4 votes vote down vote up
@Override
public void register(Asciidoctor asciidoctor) { // <2>
  JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
  javaExtensionRegistry.treeprocessor(TerminalCommandTreeprocessor.class); // <3>
}
 
Example 5
Source File: AsciidoctorJExtensionRegistry.java    From asciidoctor-maven-plugin with Apache License 2.0 4 votes vote down vote up
public AsciidoctorJExtensionRegistry(Asciidoctor asciidoctorInstance) {
    javaExtensionRegistry = asciidoctorInstance.javaExtensionRegistry();
}
 
Example 6
Source File: AutoregisteredProcessor.java    From asciidoctor-maven-plugin with Apache License 2.0 3 votes vote down vote up
@Override
public void register(Asciidoctor asciidoctor) {

    JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
    javaExtensionRegistry.preprocessor(ChangeAttributeValuePreprocessor.class);

}