medfreeman / markdown-it-toc-and-anchor

markdown-it plugin to add a toc and anchor links in headings
MIT License
60 stars 35 forks source link

Handle null in tocClassName and anchorClassName in order to not include css classes #39

Closed cesalberca closed 5 years ago

cesalberca commented 6 years ago

I've added new test cases testing the new functionality and updated the documentation. There is another property which can receive a custom css class (anchorLinkSymbolClassName) but I don't really understand what it does so I haven't changed that. Let me know if the code could be improved.

This is my first contribution to an open source project so if I've missed anything let me know. Thanks!

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 9f58cfd29e59a0164cb8974ef76979b9b01bd2af on cesalberca:master into b1b88557578c4121584a606a33e7edce7d6f099d on medfreeman:master.