class League / CommonMark / Extension / TableOfContents / TableOfContentsGenerator
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final

TableOfContentsGenerator

Implements

Constants

public

STYLE_BULLET

Default: TYPE_BULLET
public

STYLE_ORDERED

Default: TYPE_ORDERED
public

NORMALIZE_DISABLED

Default: 'as-is'
public

NORMALIZE_RELATIVE

Default: 'relative'
public

NORMALIZE_FLAT

Default: 'flat'

Properties

private

$style

Default: null
private

$normalizationStrategy

Default: null
private

$minHeadingLevel

Default: null
private

$maxHeadingLevel

Default: null
private

$fragmentPrefix

Default: null

Methods

public

__construct ( string $style , string $normalizationStrategy , int $minHeadingLevel , int $maxHeadingLevel , string $fragmentPrefix ) : void

public

generate ( Document $document ) : void

private

createToc ( Document $document ) : void

private
private

getNormalizer ( TableOfContents $toc ) : void