Class Toc

    • Constructor Detail

      • Toc

        public Toc()
    • Method Detail

      • addHeading

        public String addHeading​(String title,
                                 int level)
        Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).
        Parameters:
        title - the heading title
        level - the heading level
        Returns:
        the heading id