derlin / bitdowntoc

Online and command-line Markdown TOC generator, with built-in support for BitBucket Server, GitHub, Gitlab, dev.to and more!
https://bitdowntoc.derlin.ch
Other
82 stars 7 forks source link

fix: handle bolds and italics with underscores #24

Closed derlin closed 8 months ago

derlin commented 8 months ago

When a title contains bold and italics using underscores (vs wildcards), those are stripped when generating the anchors.

This commit adds this logic so that "hello" properly maps to the anchor "hello".

Closes: #23