qjebbs / vscode-markdown-extended

Extended syntaxes to built-in markdown & What you see is what you get exporter.
MIT License
125 stars 25 forks source link

title with link generated wrong with TOC #70

Open infsun opened 4 years ago

infsun commented 4 years ago

Hi, there: Great plugin! Lately I found a issue when I use [[toc]]. If there is a title with a link , it will be generated like this: image

the exceptation should be like this: image

The original code:

## 1. [and...or](https://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5MDEyMDk4Mw==&appmsgid=10000232&itemidx=1&sign=5dcb973d248434af133506d732dd426d) ##

Now I'm using another extension to generate TOC with the same syntax which is working well as a solution.

infsun commented 4 years ago

Hi, there: Great plugin! Lately I found a issue when I use [[toc]]. If there is a title with a link , it will be generated like this: image

the exceptation should be like this: image

The original code:

## 1. [and...or](https://mp.weixin.qq.com/mp/appmsg/show?__biz=MjM5MDEyMDk4Mw==&appmsgid=10000232&itemidx=1&sign=5dcb973d248434af133506d732dd426d) ##

Now I'm using another extension to generate TOC with the same syntax which is working well as a solution.

Correcttion: the right one should be like this: image

qjebbs commented 4 years ago

It's the behavior of dependency package markdown-it-table-of-contents, nothing I can do from the extension's end.

Or, do you have better TOC plugins to recommend?