class
League
/
CommonMark
/
Extension
/
TableOfContents
/
TableOfContentsGenerator
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
getHeadingLinks ( Document $document ) : iterable<\HeadingPermalink>
private