markdown-toc
markdown-toc copied to clipboard
json ignores options (like excluding firsth1)
res.content is fine, res.json stays the same regardless the options.
As a result:
firsth1is not excluded from theres.jsonmaxdepthis not taken into account inres.json
Issue is located in index.js in the generate(options) function.
@jonschlinkert any idea why?