Copied!
CloneableFinalInstantiable
Constants
public League\CommonMark\Extension\TableOfContents\TableOfContentsBuilder::POSITION_BEFORE_HEADINGS = 'before-headings'
public League\CommonMark\Extension\TableOfContents\TableOfContentsBuilder::POSITION_PLACEHOLDER = 'placeholder'
public League\CommonMark\Extension\TableOfContents\TableOfContentsBuilder::POSITION_TOP = 'top'
Methods
public onDocumentParsed(League\CommonMark\Event\DocumentParsedEvent $event) : void
public setConfiguration(League\Config\ConfigurationInterface $configuration) : void
Properties
private League\Config\ConfigurationInterface $config
 
  • psalm-readonly-allow-private-mutation
Methods
private insertBeforeFirstLinkedHeading(League\CommonMark\Node\Block\Document $document, League\CommonMark\Extension\TableOfContents\Node\TableOfContents $toc) : void
private replacePlaceholders(League\CommonMark\Node\Block\Document $document, League\CommonMark\Extension\TableOfContents\Node\TableOfContents $toc) : void
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration