Package org.asciidoctor.ast

Examples of org.asciidoctor.ast.ContentPart


        if (content instanceof String) {
            textContent = (String) content;
        } else {
            textContent = child.convert();
        }
        ContentPart contentPart = ContentPart.createContentPart(child.id(), level, child.context(), child.title(),
                child.style(), child.role(), child.attributes(), textContent);
        contentPart.setParts(getContents(child.blocks(), level + 1, maxDeepLevel));
        return contentPart;
    }
View Full Code Here


      if (part != null && !"all".equals(part)){
        StructuredDocument document = asciidoctor.readDocumentStructure(
            source, parameters);
        if (backend.equals("dzslides") && document != null  && document.getPartById(part) != null) {
          parameters.put(Asciidoctor.STRUCTURE_MAX_LEVEL, 2);
          ContentPart p = document.getPartById(part);
          output = getHeaderForSlides() + "<body><"+ p.getContext() +" class=\""+ p.getRole() + "\">"+ "<h2>" + p.getTitle() + "</h2>" + p.getContent() + "</"+ p.getContext() +">" + getBodyFooterForSlides() +"</body>";
        }
      }
     
      if (output == null)
        output = asciidoctor.render(source, parameters);
View Full Code Here

TOP

Related Classes of org.asciidoctor.ast.ContentPart

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.