private void render(TocBlock node, NodeRendererContext context, HtmlWriter html) { HeadingCollectingVisitor visitor = new HeadingCollectingVisitor(); List<Heading> headings = visitor.collectAndGetHeadings(node.getDocument()); if (headings != null) { TocOptionsParser optionsParser = new TocOptionsParser(); TocOptions titleOptions = haveTitle ? this.options : this.options.withTitle(""); TocOptions options = optionsParser.parseOption(node.getStyle(), titleOptions, null).getFirst(); renderTocHeaders(context, html, node, headings, options); } }
private void render(SimTocBlock node, NodeRendererContext context, HtmlWriter html) { HeadingCollectingVisitor visitor = new HeadingCollectingVisitor(); List<Heading> headings = visitor.collectAndGetHeadings(node.getDocument()); if (headings != null) { SimTocOptionsParser optionsParser = new SimTocOptionsParser(); TocOptions options = optionsParser.parseOption(node.getStyle(), this.options, null).getFirst(); if (node.getTitle().isNotNull()) { options = options.withTitle(node.getTitle().unescape()); } renderTocHeaders(context, html, node, headings, options); } }
private void render(TocBlock node, NodeRendererContext context, HtmlWriter html) { HeadingCollectingVisitor visitor = new HeadingCollectingVisitor(); List<Heading> headings = visitor.collectAndGetHeadings(node.getDocument()); if (headings != null) { TocOptionsParser optionsParser = new TocOptionsParser(); TocOptions titleOptions = haveTitle ? this.options : this.options.withTitle(""); TocOptions options = optionsParser.parseOption(node.getStyle(), titleOptions, null).getFirst(); renderTocHeaders(context, html, node, headings, options); } }
private void render(SimTocBlock node, NodeRendererContext context, HtmlWriter html) { HeadingCollectingVisitor visitor = new HeadingCollectingVisitor(); List<Heading> headings = visitor.collectAndGetHeadings(node.getDocument()); if (headings != null) { SimTocOptionsParser optionsParser = new SimTocOptionsParser(); TocOptions options = optionsParser.parseOption(node.getStyle(), this.options, null).getFirst(); if (node.getTitle().isNotNull()) { options = options.withTitle(node.getTitle().unescape()); } renderTocHeaders(context, html, node, headings, options); } }