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

Markdown Preview compatible: Markdown #147

Closed anlv closed 4 years ago

anlv commented 4 years ago

How can the issue be reproduced

markdown_preview="markdown" and autolink="true"

has 2 same headers in content.

example:

## 05/05/2020
some text
## 05/05/2020

What was expected

TOC should be:

- [05/05/2020](#05052020)
- [05/05/2020](#05052020_1)

What actually occurred

- [05/05/2020](#05052020)
- [05/05/2020](#05052020-1)

The difference is the _ and - character on the second link #05052020_1 and #05052020-1

What was the version of the involved component

markdownTOC: v4.0.1 MarkdownPreview: v2.2.5

naokazuterada commented 4 years ago

@anlv Thank you for reporting and sorry for late reply. This problem may be fixed in 4.0.2. Please check.