markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

add slug prefix

Open mgor opened this issue 7 years ago • 2 comments

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.

mgor avatar Jul 03 '17 07:07 mgor

any update on this?

chrillep avatar Jul 06 '18 08:07 chrillep

This would definitely be useful.

Bitbucket is hell.

slavaaaaaaaaaa avatar Nov 15 '18 19:11 slavaaaaaaaaaa