mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-26 02:55:02 +00:00
parser: add id to automatic table of contents heading
This commit is contained in:
parent
d99587079f
commit
6c11ef4957
1 changed files with 1 additions and 1 deletions
|
@ -1319,7 +1319,7 @@ class PeppermintParsedown extends ParsedownExtra
|
|||
if($settings->parser_toc_heading_level > 1)
|
||||
array_unshift(
|
||||
$elements,
|
||||
[ "name" => "h$settings->parser_toc_heading_level", "text" => "Table of Contents" ]
|
||||
[ "name" => "h$settings->parser_toc_heading_level", "text" => "Table of Contents", "attributes" => [ "id" => "table-of-contents" ] ]
|
||||
);
|
||||
|
||||
return trim($this->elements($elements), "\n");
|
||||
|
|
Loading…
Reference in a new issue