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
92 stars 8 forks source link

fix: handle bolds and italics with underscores #24

Closed derlin closed 11 months ago

derlin commented 11 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