html-toc
html-toc copied to clipboard
Allow passing a cheerio object
Allow htmlString to be a cheerio instance.
Input: Cheerio Instance Output: Cheerio Instance
This is useful if a cheerio is already being used in other places.
I was using the option $ to pass in the cheerio object, but hit a snag because the return was $.html()