Class MDFXUtil.Subchapter

java.lang.Object
one.jpro.platform.mdfx.MDFXUtil.Subchapter
Enclosing class:
MDFXUtil

public static class MDFXUtil.Subchapter extends Object
Represents a subchapter with an index, a heading, and content.
  • Constructor Details

    • Subchapter

      public Subchapter(int index, String headingText)
  • Method Details

    • appendContent

      public void appendContent(String c)
      Append text to this subchapter.
    • getIndex

      public int getIndex()
      The subchapter index (starts from 1 for the first subchapter in a chapter).
    • getHeadingText

      public String getHeadingText()
      Returns the subchapter heading text (excluding ##).
    • getFullMD

      public String getFullMD()
      Returns the full Markdown for this subchapter, including the ## heading plus content.
    • getContent

      public String getContent()
      Returns only the content of this subchapter, excluding the ## heading line.