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

Add support for Bitbucket style header IDs #54

Open bravoecho opened 6 years ago

mzlogin commented 6 years ago

Thx for your PR!

Have you found the source code which BitBucket used to generate toc ids? Without that, it's hard to judge the rule you wrote is right or not.

Besides, I noticed that all Chinese Characters in headers are gone in BitBucket generated toc ids, that's different from GFM.

vanildosouto commented 6 years ago

Thx for your PR!

Have you found the source code which BitBucket used to generate toc ids? Without that, it's hard to judge the rule you wrote is right or not.

Besides, I noticed that all Chinese Characters in headers are gone in BitBucket generated toc ids, that's different from GFM.

In the link (https://bitbucket.org/tutorials/markdowndemo/src/master/README.md) have a example to link markdown style from Bitbucket

mzlogin commented 6 years ago

@vanildosouto yes, but sadly it has not mentioned the rules to generate toc ids.