diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php index 98c55df..16f6e09 100644 --- a/modules/parser-parsedown.php +++ b/modules/parser-parsedown.php @@ -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");