markdown-toc
markdown-toc copied to clipboard
add slug prefix
I have vim-plugin that uses markdown-toc
to generate table of contents that I have been using for markdown files in github projects. Now however, I'm working on a project that is hosted on bitbucket. The markdown "engine" in bitbucket adds markdown-header-
to the generated slugs in markdown documents, due to this the links in markdown-toc
generated table of content does not work.
Since cli.json
didn't have any support for options, and that there was only a small part of utils.slugify
that needed modification, I added a new option and support for that option in cli.json
:
- new option for adding prefixes to generated slugs.
- added support in cli.js
- added test for slug prefixes.
any update on this?
This would definitely be useful.
Bitbucket is hell.