naokazuterada / MarkdownTOC

SublimeText3 plugin which generate a table of contents (TOC) in a markdown document.
https://packagecontrol.io/packages/MarkdownTOC
MIT License
301 stars 48 forks source link

Auto-link doesn't work for titles ending in italics #136

Closed TheBestPessimist closed 5 years ago

TheBestPessimist commented 5 years ago

How can the issue be reproduced

Have this title: # I have some text: in _italics_

What was expected

Can click the TOC entry and jump to my specific heading. (scroll location changes)

What actually occurred

The URL in the address bar changed, however I wasn't moved to my heading. (scroll location didn't chage)

What was the version of the involved component

v3.0.3 installed from package control.

If i use autoanchor="true" then everything works correctly, just w/o it i have the problem.

Possibly related: https://github.com/naokazuterada/MarkdownTOC/issues/109#issuecomment-354932113

Please see this and rename to a.md a.txt

naokazuterada commented 5 years ago

@TheBestPessimist Thank you for reporting. I will look into this weekend! : )

naokazuterada commented 5 years ago

@TheBestPessimist

Hi, your problem will be fixed in 3.0.4.

https://github.com/naokazuterada/MarkdownTOC/releases/tag/3.0.4

You can also check it here. This doc wrote with my sublime.

I close this issue, but it's OK to reopen this issue if you still have the problem after plugin auto updated. Thanks.

TheBestPessimist commented 5 years ago

I can confirm it works. Thanks a lot :)