GeneratesTableOfContents
in package
Generates a table of contents for the Markdown document, most commonly used for the sidebar.
Table of Contents
Properties
- $markdown : string
Methods
- __construct() : mixed
- execute() : string
- extractTableOfContents() : string
Properties
$markdown
protected
string
$markdown
Methods
__construct()
public
__construct(Markdown|string $markdown) : mixed
Parameters
- $markdown : Markdown|string
execute()
public
execute() : string
Return values
stringextractTableOfContents()
protected
extractTableOfContents(string $html) : string
Parameters
- $html : string