valeriangalliat / markdown-it-anchor

A markdown-it plugin that adds an `id` attribute to headings and optionally permalinks.
The Unlicense
291 stars 72 forks source link

fix: add `false` type to tabIndex option #104

Closed catnose99 closed 3 years ago

catnose99 commented 3 years ago

Thank you for maintaining markdown-it-anchor.

This PR resolve the type warning for tabIndex: false .

スクリーンショット 2021-08-04 10 35 42

I believe false is valid value as referred in README

Value of the tabindex attribute on headings, set to false to disable.

valeriangalliat commented 3 years ago

Nice catch, thank you! Sorry for the delay :)