[Feature] Usage as a library
Is your feature request related to a problem? Please describe. Outside of README.md, this tool could already be used on a variety of markdown documents to generate a table of contents. Unfortunately, customizing how to use the outputs would require importable packages outside the internal directory.
Describe the solution you'd like A well documented API showing how to use the package as a library.
Describe alternatives you've considered I've considered forking this library or writing my own. I apologize that I'm less likely to make a PR because I don't really need any of the remote fetching capabilities, so if I write the usage library feature, I'd be more likely to want to remove those parts.
Additional context None