Package org.asciidoctor

Examples of org.asciidoctor.Attributes


                    }
                }
            }

            // Process the unzipped guide through asciidoctor, rendering HTML content
            Attributes attributes = new Attributes();
            attributes.setAllowUriRead(true);
            attributes.setSkipFrontMatter(true);
            File readmeAdocFile = new File(unzippedRoot.getAbsolutePath() + File.separator + "README.adoc");
            String rawHtmlContent = asciidoctor.renderFile(
                    readmeAdocFile,
                    OptionsBuilder.options().safe(SafeMode.SAFE).attributes(attributes).headerFooter(true));
View Full Code Here


    private Options getOptions() {
        Options options = new Options();
        options.setCompact(true);
        options.setDocType("inline");

        Attributes attributes = new Attributes();
        attributes.setExperimental(true);
        attributes.setDataUri(true);

        options.setAttributes(attributes);

        return options;
View Full Code Here

TOP

Related Classes of org.asciidoctor.Attributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.