Copied!
CloneableFinalInstantiable
Constants
public League\CommonMark\Extension\TableOfContents\TableOfContentsGenerator::NORMALIZE_DISABLED = 'as-is'
public League\CommonMark\Extension\TableOfContents\TableOfContentsGenerator::NORMALIZE_FLAT = 'flat'
public League\CommonMark\Extension\TableOfContents\TableOfContentsGenerator::NORMALIZE_RELATIVE = 'relative'
public League\CommonMark\Extension\TableOfContents\TableOfContentsGenerator::STYLE_BULLET = 'bullet'
public League\CommonMark\Extension\TableOfContents\TableOfContentsGenerator::STYLE_ORDERED = 'ordered'
Methods
public __construct(string $style, string $normalizationStrategy, int $minHeadingLevel, int $maxHeadingLevel, string $fragmentPrefix)
public generate(League\CommonMark\Node\Block\Document $document) : ?League\CommonMark\Extension\TableOfContents\Node\TableOfContents
Properties
private string $fragmentPrefix
 
  • psalm-readonly
private int $maxHeadingLevel
 
  • psalm-readonly
private int $minHeadingLevel
 
  • psalm-readonly
private string $normalizationStrategy
 
  • psalm-readonly
private string $style
 
  • psalm-readonly
Methods
private createToc(League\CommonMark\Node\Block\Document $document) : League\CommonMark\Extension\TableOfContents\Node\TableOfContents
private getHeadingLinks(League\CommonMark\Node\Block\Document $document) : iterable
 
  • return iterable<\HeadingPermalink>
private getNormalizer(League\CommonMark\Extension\TableOfContents\Node\TableOfContents $toc) : League\CommonMark\Extension\TableOfContents\Normalizer\NormalizerStrategyInterface
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration