Klasse MarkdownContext

java.lang.Object
io.github.astrapisixtynine.markdownslugger.core.MarkdownContext

public class MarkdownContext extends Object
MarkdownContext holds the state used and modified throughout the Markdown processing pipeline It contains the original Markdown content, extracted heading texts and their levels, generated slugs, and a generated table of contents. This object is passed through each processing step and enriched with relevant data.
  • Felddetails

    • originalContent

      public String originalContent
      The original Markdown content to be processed
    • headings

      public List<String> headings
      A list of all heading texts extracted from the Markdown content
    • headingLevels

      public List<Integer> headingLevels
      A list of heading levels corresponding to each heading (e.g., 1 for '#', 2 for '##')
    • slugs

      public List<String> slugs
      A list of slugs generated from each heading, used for anchors and links
    • toc

      public String toc
      The generated table of contents in Markdown format
  • Konstruktordetails

    • MarkdownContext

      public MarkdownContext()