html-toc icon indicating copy to clipboard operation
html-toc copied to clipboard

Allow passing a cheerio object

Open privatmamtora opened this issue 8 years ago • 0 comments

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()

privatmamtora avatar Jul 13 '17 19:07 privatmamtora