jhildenbiddle/docsify-tabs

array index wrong

mpadinhabrandao opened this issue · 1 comments

hi, i think that array index is wrong to render tabs with comments
I tested reduce index 2 to 1 and index 3 to 1.

const tabTitle = (tabMatch[2] || '[Tab]').trim();

Thanks for creating the issue, @mpadinhabrandao.

Your fix addresses a symptom of a larger issue: when support for indented tabsets was added in 1.1.0, I neglected to update the regular expression used to match comment-based tabsets as I did or heading-based tabsets.

I've addressed this issue and will push the fix in the next release.