Closed extrabright closed 3 years ago
Thanks for getting in touch. I'll get to your issue soon! :rocket:
For urgent issues and priority support, please visit https://xscode.com/grahamcampbell/Laravel-Markdown.
Thanks for the question.
I am trying to figure our what is the best way to customize a CommonMark extension. For example I want to add the Table of Contents Extenstion.
The package you link to is not a table of contents extension, but a table exception. Moreover, both of them are dead, and should not be used. You should instead use the implementation of contents provided in the main https://github.com/thephpleague/commonmark package.
However, I would like to customize it using the available options for this extension:
League\CommonMark\Extension\TableOfContents\TableOfContentsExtension::class
to your markdown config file extension array.The default looks something like:
You can literally just append your config to the end:
I am trying to figure our what is the best way to customize a CommonMark extension. For example I want to add the Table of Contents Extenstion.
I added the class in the config file and it works great. However, I would like to customize it using the available options for this extension:
Could you point me to the right direction?