Closed calvinrw closed 3 years ago
Thank you for your contribution!
I tested your code and got the following error: Undefined property: TableOfContents::$heading
In my case, I didn't declare a heading
either in the config file or as an attribute.
To fix this, I just add the declaration of the variable private $heading;
in the file TableOfContents.php
.
Thanks again
Good catch, thanks for fixing the missing property. I had forgotten to test that case before submitting the PR.
toc_heading
configuration setting or the<toc />
element'sheading
attribute is set, use its value as heading texttoc-heading
class