mzlogin / vim-markdown-toc

A vim 7.4+ plugin to generate table of contents for Markdown files.
http://www.vim.org/scripts/script.php?script_id=5460
MIT License
613 stars 59 forks source link

If the head is a link, the toc generated is not expected. #13

Closed liuchengxu closed 8 years ago

liuchengxu commented 8 years ago

For example :

### [vim-airline](https://github.com/vim-airline/vim-airline)

then the generated toc is :

###     * [[vim-airline](https://github.com/vim-airline/vim-airline)](#vim-airlinehttpsgithubcomvim-airlinevim-airline)

This will lead to a direct visit to the link. However, I hope it lead to the right position in the current page.

So, what I expected is :

### * [vim-airline](#vim-airline)
mzlogin commented 8 years ago

Yes, that's a bug. I will try to fix it.

Thanks for reporting! 😄

mzlogin commented 8 years ago

Fixed, please update and try again.

Your feedback is excepted, thanks a lot! 😆